Veriq — a truth layer for AI-written quantum code
Tests and histograms say "looks right". Veriq proves whether a quantum circuit is right and, when it isn't, shows the input that breaks it.
| 2.7% – 5.4% | of published model solutions that pass their benchmark's own tests are provably wrong (7 strict, 14 counting gates wrong only on superposed inputs, of 257 passing QuanBench solutions from GPT-4.1 and GPT-4o; manually reviewed; a lower bound). Study → |
| 34% vs 100% | of 966 injected bugs caught by the usual Aer histogram from |0…0⟩, vs. by Veriq's equivalence proof (0/98 false positives). Veriq Bench → |
| 5 of 28 | correct LLM circuits whose default Qiskit compile is no longer the same unitary (the qubits_initially_zero hazard); only a unitary proof sees it. Example → |
Install
pip install veriq-quantum # import name and CLI: veriq (Python 3.10+)
# until the first PyPI release: pip install "git+https://github.com/Yosefnoorani/veriq"
Quickstart
veriq check candidate.py -r reference.py # PASS / FAIL / INCONCLUSIVE (exit 0 / 1 / 2)
veriq check compiled.py -r block.py --repair-report bug.json # FAIL -> counterexample + bug region + fix
veriq check ghz.py -r ghz_ref.py --mode state # compare states from |0...0> instead of unitaries
veriq optimize my_circuit.py -o best.qasm # fewer CX, proven equivalent
veriq mcp # let your AI assistant verify before it answers
Features
- Formal equivalence (MQT QCEC, exact operator, Clifford tableaux) with a concrete counterexample input, plus transpile integrity and statistical tests: usage
- pytest plugin: the
veriq_equivfixture andassert_equivalent(a, b): docs/pytest.md - CI: a GitHub Action with a sticky PR comment, and
veriq ci: docs/ci.md - MCP server for Claude Desktop, Cursor and other MCP clients (sandboxed): docs/mcp.md
- Repair: bug localization and a bounded verify → fix loop: docs/repair.md
- Verified optimization: the cheapest compilation, proven equal: docs/optimize.md
- Hardware preflight: go / warn / no-go before you submit: docs/preflight.md
- Large circuits (20–50+ qubits): docs/large-circuits.md
- OpenQASM 3, Cirq and TKET front-ends: docs/frameworks.md
- Signed certificates (Ed25519): docs/certificates.md
- Benchmarks: Veriq Bench, the hard round, real bugs: docs/benchmarks.md
- Limitations and roadmap: docs/limitations.md. Releasing: docs/release.md
Apache-2.0
Metadata
Release files for veriq-quantum 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 |
|---|---|---|---|---|
| veriq_quantum-0.1.1.tar.gz | 164.5 kB | With provenance | Details for veriq_quantum-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| veriq_quantum-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for veriq_quantum-0.1.1-py3-none-any.whl |
Total release size: 303.6 kB
Release files / veriq_quantum-0.1.1.tar.gz
| Download URL | veriq_quantum-0.1.1.tar.gz |
|---|---|
| Size | 164.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6614837ca18b431d421ba920a02e2935f4005c8bdb35b9e52b85a8a94619aad
|
|
BLAKE2b-256 checksum How to use checksums |
6415af1db6525fb4f12183aa2f8fb672e729e6feeed6510319878bc5cfa01096
|
| 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 Nov 28, 2026.
Transparency logRelease files / veriq_quantum-0.1.1-py3-none-any.whl
| Download URL | veriq_quantum-0.1.1-py3-none-any.whl |
|---|---|
| Size | 139.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
557f90d5c7d967009a64da2dcf931d034ee6d9aec7f0590d94b11352d855cf0f
|
|
BLAKE2b-256 checksum How to use checksums |
37b45da7b542c6dabe8f704e0f96a5a38dfa3cd1210fd44380d8b075b0c37672
|
| 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 Nov 28, 2026.
Transparency logSecurity for veriq-quantum 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 veriq_quantum-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 Nov 28, 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.