Open-source representation-search layer for quantum computing.
WestQuant Open is an open-source representation-search layer for quantum computing. It searches alternative compilation and representation paths across multiple software stacks, while preserving verification and full provenance.
pip install westquant[qiskit]from westquant import optimize
result = optimize(circuit, framework="qiskit", backend=backend, budget=64)
print(result.pareto_front)Or from the command line:
westquant doctor # Check what's installed
westquant compare circuit.qasm # Compare default vs WestQuant search
westquant plugins # List available plugins| Package | Description |
|---|---|
| westquant-core | Framework-neutral WQIR, RepGraph, plugin contracts |
| westquant-qcsc | Semantic QPU Minimization — analyze where QPU is actually needed |
| Package | Description |
|---|---|
| westquant-qiskit | Qiskit transpiler stage plugins |
| westquant-pytket | pytket compiler pass search |
| westquant-pennylane | PennyLane transform search |
| westquant-pulser | Pulser neutral-atom search |
| Package | Description |
|---|---|
| westquant-orchestrator | Cross-framework trace normalization |
| westquant-bridges | Cirq/Braket/QIR/OpenQASM bridges |
# Single framework
pip install westquant[qiskit]
pip install westquant[pytket]
pip install westquant[pennylane]
pip install westquant[pulser]
# Everything
pip install westquant[all]westquant compare circuit.qasm -f qiskitOutput:
2Q gates depth verified
Qiskit default 143 212 yes
Qiskit opt-3 128 195 yes
WestQuant search 113 179 yes
Candidates evaluated: 64
Verification: EXACT
2Q gate reduction: 20.9%
Depth reduction: 15.6%
WestQuant Open
├── westquant-core # WQIR, RepGraph, search contracts
├── westquant-qcsc # Semantic QPU Minimization optimizer
├── westquant-qiskit # Qiskit transpiler plugins
├── westquant-pytket # pytket pass search
├── westquant-pennylane # PennyLane transform search
├── westquant-pulser # Pulser neutral-atom search
├── westquant-orchestrator # Cross-framework normalization
├── westquant-bridges # Experimental framework bridges
└── westquant # Umbrella package (this repo)
Every transformation is independently verified:
- EXACT: Unitary equivalence via
Operator.equiv() - UNKNOWN: Conservative — never promoted to EXACT
- same_problem_different_dynamics: Pulser-specific — never collapsed with EXACT
WestQuant asks three questions in order:
- Does this operation need to happen? (Eliminate)
- Does it need to be quantum? (Replace with classical)
- Only then: which resource should execute it? (Schedule)
That ordering is the defining idea of the project.
- Discussions: Join the conversation
- Contributing: See CONTRIBUTING.md
- Code of Conduct: See CODE_OF_CONDUCT.md
- Releases: Monthly on the last Friday — see release schedule
Apache-2.0
David Vesterlund — Vesterlund Ventures / WestQuant Open Source Project
- Email: david@vesterlundventures.se
- ORCID: 0009-0000-6455-1141