WestQuant Open
Search the representation, not just the parameters.
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.
Quick start
pip install westquant[qiskit]
from westquant_qiskit.search import DeterministicSearchEngine
result = DeterministicSearchEngine().search(circuit, challenge_id="demo", backend=backend, max_candidates=64)
print(result.best.metrics, result.best.verification.equivalence)
print([c.metrics for c in result.pareto_front])
The umbrella package itself exports the WQDF dataset helpers
(from westquant import generate_training_data, WQDFSample).
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
Packages
Core
| Package | Description |
|---|---|
| westquant-core | Framework-neutral WQIR, RepGraph, plugin contracts |
| westquant-qcsc | Semantic QPU Minimization — analyze where QPU is actually needed |
Framework integrations
| 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 |
Infrastructure
| Package | Description |
|---|---|
| westquant-orchestrator | Cross-framework trace normalization |
| westquant-bridges | Cirq/Braket/QIR/OpenQASM bridges |
Installation
# Single framework
pip install westquant[qiskit]
pip install westquant[pytket]
pip install westquant[pennylane]
pip install westquant[pulser]
# Everything
pip install westquant[all]
Compare
westquant compare circuit.qasm -f qiskit
Actual output for a 5-qubit QFT (westquant 0.1.1, Qiskit 2.6.1, no target):
2Q gates depth verification
──────────────────── ────────── ────────── ────────────
Qiskit opt-2 (base) 26 29 exact
Qiskit opt-3 26 29 exact
WestQuant search 26 34 exact
Candidates evaluated: 8 (8 verified exact)
Verification of selected candidate: exact
The verification column is the status returned by QiskitEquivalenceVerifier
for that exact circuit: exact, invalid or unknown. Circuits with
measurements, resets or more than 8 qubits are reported as unknown, and
reductions are then not printed. Only -f qiskit is implemented; other
frameworks exit with status 2.
Architecture
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)
Verification
Every candidate carries an explicit verification status:
- EXACT: Unitary equivalence via
Operator.equiv()(small, unitary circuits) - UNKNOWN: Conservative — not checked or not checkable; never promoted to EXACT
- same_problem_different_dynamics: Pulser-specific — never collapsed with EXACT
Design philosophy
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.
Community
- 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
License
Apache-2.0
Author
David Vesterlund — Vesterlund Ventures / WestQuant Open Source Project
- Email: david@vesterlundventures.se
- ORCID: 0009-0000-6455-1141
Metadata
Release files for westquant 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 | Provenance | Actions |
|---|---|---|---|---|
| westquant-0.1.1.tar.gz | 20.3 kB | With provenance | Details for westquant-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| westquant-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for westquant-0.1.1-py3-none-any.whl |
Total release size: 37.8 kB
Release files / westquant-0.1.1.tar.gz
| Download URL | westquant-0.1.1.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c009b15fb235934fec2653d7084109ed8a129e210654cfd1643d1f961a0889ad
|
|
BLAKE2b-256 checksum How to use checksums |
19804511fa28d71514122a59bccfdcce792f9c6c77d10590d2581384cdfe6a35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 27, 2026.
Transparency logRelease files / westquant-0.1.1-py3-none-any.whl
| Download URL | westquant-0.1.1-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02f0a3096b50c4809144e3e51f265047da697d50aadfc5eade7add6358229fa8
|
|
BLAKE2b-256 checksum How to use checksums |
17d306dc5268247c0781f8bc4300cf1464e7fc9d46465893c7ff55b4cff87c13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 27, 2026.
Transparency logSecurity for westquant 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for westquant-0.1.1.tar.gz
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 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.