QCC: the Quantum Compiler Collection
A technology-agnostic quantum circuit compiler, part of the Qevedo packages:
it installs as qevedo-compiler and imports as qevedo.compiler.
Install
pip install qevedo-compiler
For development, from a checkout:
cd qcc/python
pip install -e ".[dev]"
openqasm 3.x is installed from PyPI. To develop both together, also install
the sibling checkout: pip install -e ../../openqasm.
Usage
qcc compile examples/bell.qasm -o /tmp/out.qasm --device qevedo/compiler/profiles/all_to_all.yaml
qcc compile program.qasm -o /tmp/out.qasm --qasm-version 3 -I lib/
From Python:
from qevedo.compiler import compile_source, emit_qasm
circuit = compile_source(open("examples/bell.qasm").read())
print(emit_qasm(circuit))
The reference device profiles ship with the package, in
qevedo/compiler/profiles/.
Input can be OpenQASM 2 or 3. Programs are checked by openqasm.analyze
before lowering, so errors are reported with their location. The frontend
supports qubit and bit registers, gate calls with constant parameters
(broadcast over registers), measurements, resets, barriers, let aliases of
qubits and const values. Control flow, gate modifiers, classical variables,
timing and hardware qubits are rejected with an error until the IR supports
them. Gate definitions are not inlined: gates stay named instructions for the
decomposition pass.
Tests
pytest
Metadata
Release files for qevedo-compiler 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qevedo_compiler-0.1.1.tar.gz | 17.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qevedo_compiler-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.3 kB
Release files / qevedo_compiler-0.1.1.tar.gz
| Download URL | qevedo_compiler-0.1.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
273e3e179d7ed7ee4aa738a23d1e07da6257c1bbeaefa64072e6160578f38d6e
|
|
BLAKE2b-256 checksum How to use checksums |
3889bb776fa1d74fea51b7c045fa055e6492f73226fb88d1a182ca02da80e228
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.
Transparency logRelease files / qevedo_compiler-0.1.1-py3-none-any.whl
| Download URL | qevedo_compiler-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
848e5e3f5257196e713a0f1384c871e8a9b5236530ddbd73f9835e85bab41c8b
|
|
BLAKE2b-256 checksum How to use checksums |
ae3c5be0d99ef654a9b86dc5c4202e6dcc4a0128baf584e5239bbf65563b6c58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.
Transparency log