A Hybrid Classical–Quantum Programming Language with a Unified Execution Model
Most quantum languages are just Python libraries. Quantica is a Hybrid Classical–Quantum Programming Language where quantum gates, measurements, and circuits are first-class citizens.
- Native Quantum Syntax: Allocate registers (
quantum q[2]) and apply gates (apply Hadamard(q[0])) directly in the language. - Hybrid Runtime: Mix classical logic (
if,while,functions) with quantum state manipulation seamlessly. - Gate Modifiers: Dynamically apply
dagger(inverse) andcontrolledmodifiers to any gate or circuit. - LLVM Backend: Compiles to highly optimized native machine code via LLVM 18 for maximum performance.
- Package Management: Built-in support for modules and packages via
importandfromsyntax.
For the easiest setup, download the pre-built installer from our latest release.
- Go to the Releases Page.
- Download
Quantica_Setup-v0.2.0.exe. - Run the installer to set up Quantica and add it to your system PATH automatically.
If you are on Linux/macOS or prefer building from source, you will need Rust and LLVM 18 installed.
# 1. Clone the repository
git clone [https://github.com/Quantica-Foundation/quantica-lang.git](https://github.com/Quantica-Foundation/quantica-lang.git)
cd quantica-lang
# 2. Build the compiler (release mode recommended for performance)
cargo build --release
# 3. The executable will be at ./target/release/quantica
Add this folder to your PATH or copy the binary to /usr/local/bin- Match expressions incomplete (use if/elif/else)
- Try/finally not implemented (try/catch works)
- JIT mode experimental (use interpreter or AOT)
The design and execution model of Quantica are described in the following paper:
Gurukasi M.
Quantica: A Hybrid Classical–Quantum Programming Language with a Unified Execution Model
Zenodo (2025).
DOI: https://doi.org/10.5281/zenodo.17852707