qec_code, qec_decode and qec_threshold call the engine's error correction in-process, each answer sealed in a job's form, and run() takes mitigate=. The tests decode every error of weight up to two on the distance-5 colour code to a trivial residual, check a certificate and a forged one, and hold each answer to the command line's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
28 lines
1.3 KiB
TOML
28 lines
1.3 KiB
TOML
[package]
|
|
name = "wai-quantum-py"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.97"
|
|
license = "Apache-2.0"
|
|
description = "WAI Quantum in Python: the shared job engine in-process (run, plan, lint, draw, critique, equivalent, verify, seal), a client for the job service, and notebook widgets. Built by maturin as one abi3 wheel per platform."
|
|
repository = "https://git.transaction.science/Transaction-Science/open-standards"
|
|
publish = false
|
|
|
|
[lib]
|
|
# The extension module the Python package imports as `wai_quantum._engine`.
|
|
name = "_engine"
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
# The stable ABI from Python 3.9 on: one wheel per platform serves every
|
|
# later version.
|
|
pyo3 = { version = "=0.29.3", features = ["abi3-py39", "extension-module"] }
|
|
# float_roundtrip: a number read back reads as the double it was, so a
|
|
# result's receipt still verifies after any JSON writer has carried it.
|
|
serde_json = { version = "1", features = ["float_roundtrip"] }
|
|
# quantum_qec: codes, decoders and thresholds (`qec`); quantum_noise: mitigation
|
|
# in a job (`mitigate`), learned noise models among them.
|
|
wai-quantum = { version = "0.7.0", path = "../wai-quantum", default-features = false, features = ["quantum_engine", "quantum_receipt", "quantum_qec", "quantum_noise"] }
|
|
|
|
[profile.release]
|
|
lto = "thin"
|