https://github.com/thrushlang/quantum
Extending the Thrush programming language for quantum programming.
https://github.com/thrushlang/quantum
quantum quantum-programming-language quatum-computing
Last synced: about 1 month ago
JSON representation
Extending the Thrush programming language for quantum programming.
- Host: GitHub
- URL: https://github.com/thrushlang/quantum
- Owner: thrushlang
- License: bsd-3-clause
- Created: 2025-03-05T18:30:04.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-04-23T19:01:17.000Z (2 months ago)
- Last Synced: 2025-04-23T20:19:58.893Z (2 months ago)
- Topics: quantum, quantum-programming-language, quatum-computing
- Homepage: https://github.com/thrushlang
- Size: 460 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
# Quantum programming
There are plans to enable **quantum programming support** for the Thrush Programming Language. Here we explain how we could implement it.
# > ¿What is Quantum Programming?
**Quantum programming** is the development of software for quantum computers, which use principles of quantum mechanics, such as superposition and entanglement, to perform calculations. Unlike classical bits (0 or 1), qubits in quantum computing can be in multiple states simultaneously, allowing certain problems, such as factoring large numbers or simulating molecules, to be solved more efficiently than traditional computers.
# > We have problems.
The infrastructure of **[LLVM](https://llvm.org/)** and **[MLIR](https://mlir.llvm.org/)** is not yet stable enough to generate intermediate code for quantum computers. So we have to resort to other methods.
In addition to this, although there are dialects and infrastructures to generate quantum code, they are very complex and not available in Rust, in a conventional way, through some type of constructor or bridge.
# > Q# is the solution.
**[Q#](https://github.com/microsoft/qsharp)** is a quantum programming language created by **Microsoft**.
By creating a compiler, you could port your thrush programming language code to Q#. Q# can then compile it excellently into code for quantum computers.
The quantum compiler for the thrush programming language would be **thrushqua**. This would be responsible for transferring the thrush programming language code into Q# code so that it can then be compiled.
`thrushqua --compile test.th`
![]()
------------
Although this is a **superficial introduction**, it is the very future idea of implementing support for quantum programming by Thrush Programming Language, opening a new era in programming languages.