All checks were successful
wai-quantum WebGPU member / member · DX12 and Vulkan (cbio-windows) (pull_request) Successful in 12m23s
joule-moq-room room service / joule-moq-room · does this change touch it (pull_request) Successful in 5s
joule-moq-web browser client / joule-moq-web · does this change touch it (pull_request) Successful in 6s
wai-quantum on every processor / emulated · aarch64-unknown-linux-gnu (pull_request) Successful in 1m47s
wai-quantum on every processor / emulated · armv7-unknown-linux-gnueabihf (pull_request) Successful in 2m49s
standards workspaces build + test / which workspaces this change touches (pull_request) Successful in 6s
WAI conformance / does this change touch it (pull_request) Successful in 7s
WAI energy receipts / does this change touch it (pull_request) Successful in 10s
WAI JPEG-AI whole decode (pinned inputs, required) / does this change touch it (pull_request) Successful in 7s
WAI neural sink gates / does this change touch it (pull_request) Successful in 11s
repository checks / lockfiles, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Successful in 1m12s
wai-ops-gpu integer operators on GPUs / does this change touch it (pull_request) Successful in 10s
wai-pack / wai-pack · does this change touch it (pull_request) Successful in 8s
wai-quantum command line / does this change touch it (pull_request) Successful in 8s
wai-quantum dataflow member / does this change touch it (pull_request) Successful in 6s
wai-quantum CUDA member / does this change touch it (pull_request) Successful in 7s
wai-quantum signal processor / does this change touch it (pull_request) Successful in 5s
wai-quantum FPGA member / does this change touch it (pull_request) Successful in 7s
wai-quantum HIP member / does this change touch it (pull_request) Successful in 6s
wai-quantum Metal member / does this change touch it (pull_request) Successful in 5s
wai-quantum neural-processor member / does this change touch it (pull_request) Successful in 6s
wai-quantum npu-cores member / does this change touch it (pull_request) Successful in 7s
wai-quantum on every processor / emulated · loongarch64-unknown-linux-gnu (pull_request) Successful in 3m38s
wai-quantum OpenCL member / does this change touch it (pull_request) Successful in 6s
wai-quantum CUDA member / member · CUDA (jetson-hub) (pull_request) Successful in 27s
wai-quantum-qpu / does this change touch it (pull_request) Successful in 7s
wai-quantum HIP member / member · HIP (framework-128gb) (pull_request) Successful in 20s
wai-quantum service / does this change touch it (pull_request) Successful in 6s
wai-quantum matrix-extension member / does this change touch it (pull_request) Successful in 7s
wai-quantum studio and desktop / does this change touch it (pull_request) Successful in 6s
wai-quantum tensor-engine member / does this change touch it (pull_request) Successful in 7s
wai-quantum CPU vector units / does this change touch it (pull_request) Successful in 5s
wai-quantum portable tensor program / does this change touch it (pull_request) Successful in 6s
wai-quantum OpenCL member / member · OpenCL GPU and CPU (jetson-hub) (pull_request) Successful in 24s
wai-quantum WebGPU member / does this change touch it (pull_request) Successful in 5s
WAI mbt2018_mean integer decode (regenerated vectors) / does this change touch it (pull_request) Successful in 5s
wai-web wasm32 / does this change touch it (pull_request) Successful in 5s
wai-quantum portable tensor program / tensor program · GPUs (jetson-hub) (pull_request) Successful in 15s
wai-quantum npu-cores member / member · npu-cores, neural processor (framework-128gb silicon) (pull_request) Successful in 1m13s
wai-quantum OpenCL member / member · OpenCL GPU (framework-128gb) (pull_request) Successful in 13s
wai-quantum CPU vector units / member · vector units, avx2 and avx512 (framework-128gb silicon) (pull_request) Successful in 10s
wai-quantum portable tensor program / tensor program · integrated GPU (framework-128gb) (pull_request) Successful in 8s
joule-moq-room room service / joule-moq-room, every target (pull_request) Successful in 1m3s
wai-quantum on every processor / emulated · powerpc64-unknown-linux-gnu (pull_request) Successful in 5m25s
wai-quantum on every processor / emulated · powerpc64le-unknown-linux-gnu (pull_request) Successful in 6m1s
wai-quantum on every processor / emulated · riscv64gc-unknown-linux-gnu (pull_request) Successful in 4m2s
wai-quantum WebGPU member / member · integrated GPU, Vulkan (framework-128gb) (pull_request) Successful in 7m37s
wai-quantum on every processor / emulated · s390x-unknown-linux-gnu (pull_request) Successful in 4m8s
wai-quantum on every processor / emulated · sparc64-unknown-linux-gnu (pull_request) Successful in 6m16s
wai-web reach builds / wai-web reach · does this change touch it (pull_request) Successful in 7s
wai-quantum on every processor / emulated · i686-unknown-linux-gnu (pull_request) Successful in 4m10s
wai-quantum WebGPU member / member · discrete GPU, Vulkan (jetson-hub) (pull_request) Successful in 20m25s
WAI conformance / quantum core and corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 2m2s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 27s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 10m17s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 18m12s
WAI neural sink gates / model-free refusals of the neural sink (pull_request) Successful in 1m24s
wai-ops-gpu integer operators on GPUs / builds · no adapter is not a pass (linux) (pull_request) Successful in 1m45s
wai-pack / wai-pack · linux (pull_request) Successful in 1m20s
wai-quantum command line / command line · linux (pull_request) Successful in 1m7s
WAI JPEG-AI whole decode (pinned inputs, required) / fetch pinned JPEG-AI inputs → whole decode + pixel hash, required (pull_request) Successful in 6m57s
wai-quantum CUDA member / member · CUDA absent (linux) (pull_request) Successful in 24s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:b140) (pull_request) Successful in 3m25s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:401e) (pull_request) Successful in 4m35s
wai-quantum FPGA member / member · FPGA simulation absent (linux) (pull_request) Successful in 21s
wai-quantum Metal member / member · Metal absent (linux) (pull_request) Successful in 26s
wai-quantum neural-processor member / member · neural processor absent (linux) (pull_request) Successful in 26s
wai-quantum OpenCL member / member · OpenCL absent (linux) (pull_request) Successful in 21s
wai-quantum-qpu / clients against their contracts (linux) (pull_request) Successful in 20s
wai-quantum service / service · linux (pull_request) Successful in 39s
wai-quantum matrix-extension member / member · matrix extension, emulated (aarch64 Linux) (pull_request) Successful in 19s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 3m23s
wai-quantum signal processor / processor and member · signal processor, emulated (pull_request) Successful in 14m8s
wai-quantum CPU vector units / member · vector unit, rvv 1024-bit (riscv64, emulated) (pull_request) Successful in 19s
wai-quantum CPU vector units / member · vector unit, sve 128-bit (aarch64, emulated) (pull_request) Successful in 28s
wai-quantum CPU vector units / member · vector unit, rvv 128-bit (riscv64, emulated) (pull_request) Successful in 14s
wai-quantum CPU vector units / member · vector unit, sve 2048-bit (aarch64, emulated) (pull_request) Successful in 10s
wai-quantum tensor-engine member / member · tensor engine, the kernel toolchain's simulator (linux) (pull_request) Successful in 8m5s
wai-quantum CPU vector units / member · vector unit, avx2 (x86_64 silicon) (pull_request) Successful in 15s
wai-quantum CPU vector units / member · vector unit, sve 512-bit (aarch64, emulated) (pull_request) Successful in 12s
wai-quantum portable tensor program / tensor program · CPU, mutants, GPU builds (pull_request) Successful in 29s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Successful in 3m12s
wai-quantum WebGPU member / member · software Vulkan (linux) (pull_request) Successful in 2m9s
wai-quantum WebGPU member / shader checks · browser build · wasip2 inertness · MSRV (pull_request) Successful in 3m13s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 4m18s
WAI mbt2018_mean integer decode (regenerated vectors) / regenerate mbt2018_mean integer vectors → Rust decode, required (pull_request) Successful in 5m22s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 15s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 2m23s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 15m0s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 12s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 26s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 1m36s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 4m35s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 6m54s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 1m14s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 24s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 1m18s
wai-quantum HIP member / member · HIP absent (linux-arm64) (pull_request) Successful in 25s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (pull_request) Successful in 6m16s
wai-quantum npu-cores member / member · npu-cores absent (linux-arm64) (pull_request) Successful in 23s
wai-quantum tensor-engine member / member · tensor engine absent (linux-arm64) (pull_request) Successful in 19s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 4m8s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 35m22s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 8m33s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 14m16s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 23s
WAI conformance / codec wrappers · fuzz smoke, text decode limits, C entry points, provenance, the semantic path (pull_request) Successful in 54s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 6m14s
wai-ops-gpu integer operators on GPUs / Metal GPU and browser WebGPU (macos) (pull_request) Successful in 3m12s
wai-pack / wai-pack · macos (pull_request) Successful in 1m3s
wai-quantum command line / command line · macos (pull_request) Successful in 28s
wai-quantum dataflow member / member · dataflow device absent (macos) (pull_request) Successful in 14s
wai-quantum FPGA member / member · FPGA datapath, simulated (macos) (pull_request) Successful in 1m13s
wai-quantum Metal member / member · Metal (macos) (pull_request) Successful in 29s
wai-quantum neural-processor member / member · neural processor (macos) (pull_request) Successful in 5m49s
wai-quantum OpenCL member / member · OpenCL GPU (macos) (pull_request) Successful in 29s
wai-quantum service / service · macos (pull_request) Successful in 44s
wai-quantum matrix-extension member / member · matrix extension absent (macos) (pull_request) Successful in 9s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 2m12s
wai-quantum CPU vector units / member · vector unit absent (macos) (pull_request) Successful in 13s
wai-quantum portable tensor program / tensor program · Metal and the arm64 CPU (macos) (pull_request) Successful in 15s
wai-quantum WebGPU member / member · Metal (macos) (pull_request) Successful in 4m26s
wai-quantum WebGPU member / member · browser WebGPU (macos) (pull_request) Successful in 1m43s
This carries 0.6.13, which was not published on its own, and 0.6.14. ## 0.6.13 The engine is the microscope and the judge, a local model is a muse that waits to be asked, and the reader is the author. Every figure is the engine's. Nothing changes the reader's program until they apply a change. engine::critique gives a program's measures before it runs: - gates by kind; one-, two- and three-qubit gates; T gates; gates off the Clifford angles; - depth and two-qubit depth, and whether it is a Clifford circuit; - a fidelity at reference error rates, named as a model. It also gives the program's smells, each with its lines and operations: gates that cancel, rotations that merge or do nothing, idle qubits, and qubits never measured. critique::variants rewrites the program's own text with the smells fixed, all of them to a fixed point and each one alone. Each candidate carries its measures and the equivalence verdict; one the check finds different is never offered. engine::equiv compares two programs up to a global phase: - by tableau for Clifford circuits, at any size; - otherwise on every basis state, to 8 qubits; - otherwise on random product states, to 22 qubits, which is evidence, not proof; - otherwise unchecked, with the reason. qasm::parse_lines gives each operation's line, and draw::layout each gate's operation index. engine::shortcuts lists every exact classical route the engine knows, priced on the program, and names the cheapest for each question: - the stabilizer tableau; - the cut-rank sum; - an exact matrix product state, at a bond bounded by the operator Schmidt ranks of the gates crossing each cut. The bound is held by a test against the true Schmidt ranks of random circuits; - the light cone; - a tensor-network contraction, when asked to be thorough; - the state vector. A cheap route proves a design classically easy; none being cheap proves nothing. On the 70-qubit random graph-state circuit the quick check finds the cut-rank sum (widest cut 30) in under 2 s. The thorough one finds widest cut 29 in about 4 minutes. Quantum Studio gains: - the critique, always on under the diagram, with the smells flagged on it, Show and Fix; - the classical cost, on request; - Alternatives: Improve (the engine's rewrites and the model's, each checked) and Explore (the model's different circuits, each measured and compared), with an atlas and Apply; - Predict first, which sets the reader's expected outcome against the run; - an assistant that asks questions first and speaks only when asked, offering (never sending) a hint when allowed. Its new tools are critique_qasm, check_equivalent and classical_shortcuts. wai-web exports the four engine calls. The desktop app answers them natively. wai-quantum-cli 0.1.1 adds critique, equivalent (exit 0/1/2), improve and shortcuts, with four MCP tools. examples/cutrank_qasm gains probs: the exact 2^n·p of given bit strings, with their linear cross-entropy. ## 0.6.14 A deep circuit on a line, contracted qubit by qubit along time, keeps a boundary of only the bonds between two neighbouring qubits: about half the depth for a controlled-Z brickwork. The contraction search rarely found that tree on its own. - Network::amplitude_split_placed builds the same network as amplitude_split, index for index, with each index's place in the circuit: a qubit and a time. - tensor_places, sweep_orders and sweep_path turn the places into the trees that sweep qubit by qubit, or time by time. - find_path_seeded and find_path_restarts_seeded score such trees beside the trials and polish the best of them all alike. A seed that is not a tree of the network is ignored. - The engine's tensor_network method and the thorough shortcut lens take both sweeps as seeds. On the 70-qubit random graph-state circuit, one amplitude's largest intermediate falls from 2^48 to 2^36, and its multiply-adds from 2^56.1 to 2^48.7, in the thorough lens. With 16 trials and no seeds the search finds 2^59. The pinned plans in tests/bit_identity.rs call find_path itself and are unchanged. The job service answers four design checks: POST /v1/critique, /v1/equivalent, /v1/improve and /v1/shortcuts, with the matching MCP tools. They run in its own process within bounds: - each counts against the client's submissions; - at most two run at once, and one that waits ten seconds is refused with a 503; - equivalence work past 4e9 gate amplitudes, and a thorough search, are refused with a 422 naming the local command. The smoke script checks each one. It now follows a job that outlasts /v1/run's wait, as a client does, instead of failing on a loaded host. wai-quantum-cli 0.1.2 carries the faster contraction. Co-Authored-By: Claude Opus 5.5 <[email protected]>
426 lines
18 KiB
TOML
426 lines
18 KiB
TOML
[package]
|
|
name = "wai-quantum"
|
|
version = "0.6.14"
|
|
edition = "2024"
|
|
rust-version = "1.97"
|
|
license = "Apache-2.0"
|
|
description = "A deterministic quantum stack in pure Rust: byte-exact circuit simulation (statevector / stabilizer / tensor-network MPS / sparse-Pauli backends), sparse Pauli dynamics at utility scale (arbitrary angles, 1024 qubits), belief-propagation tensor networks on the hardware graph, error mitigation, qLDPC decoding, noise learning, circuit-equivalence proofs, a phasor interference-ML layer, information-theoretic limits, noisy channels and state tomography, and signed energy-accounted receipts. No QPU, no cloud, no system libraries in the default features — identical results native, in the browser, and as a WASI component at the edge; the opt-in WebGPU member reaches the platform's GPU interface."
|
|
repository = "https://git.transaction.science/Transaction-Science/open-standards"
|
|
homepage = "https://wai.transaction.science/quantum-ide"
|
|
documentation = "https://docs.rs/wai-quantum"
|
|
keywords = ["quantum", "simulation", "wasm", "deterministic", "qec"]
|
|
categories = ["science", "simulation", "wasm", "mathematics"]
|
|
readme = "README.md"
|
|
# Holds a file outside this package (quantum-conformance/fabric/expected.json) to
|
|
# the crate; it runs in the repository only.
|
|
exclude = ["tests/fabric_expected.rs"]
|
|
|
|
# docs.rs builds with DEFAULT features only, which would document 3 of 21
|
|
# modules and hide the entire operational + ML layers. Document everything.
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[dependencies]
|
|
# Hashes for circuit / statevector / receipt identity. Required: the base
|
|
# `quantum` feature binds every reconstruction to a BLAKE3 hash.
|
|
blake3 = "1"
|
|
# Canonical receipt JSON (sorted keys, byte-stable round-trip).
|
|
serde_json = { version = "1", features = ["preserve_order"] }
|
|
# The engine's request and plan types (feature quantum_engine).
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
# Receipt signatures. Optional — only the sealing features need it.
|
|
ed25519-dalek = { version = "2", optional = true }
|
|
|
|
# The WebGPU member of the fabric: the gate kernel in WGSL through the platform's
|
|
# GPU interface natively, and through a browser's WebGPU on wasm32-unknown-unknown.
|
|
# Absent on every other target; wasm32-wasip2 has no GPU interface.
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
wgpu = { version = "30.0.1", optional = true, default-features = false, features = ["std", "wgsl", "metal", "vulkan", "dx12"] }
|
|
# The CUDA member: the driver and the runtime compiler are loaded when first used,
|
|
# so a build with the feature needs no CUDA installed and finds no member where
|
|
# there is none.
|
|
cudarc = { version = "0.19.10", optional = true, default-features = false, features = ["std", "driver", "nvrtc", "dynamic-loading", "cuda-12080"] }
|
|
# The OpenCL member: the ICD loader is opened when first used, so a build with the
|
|
# feature needs no OpenCL installed and finds no member where there is none.
|
|
opencl3 = { version = "0.12.3", optional = true, default-features = false, features = ["dynamic"] }
|
|
|
|
# The neural-processor member: the platform's model runtime on macOS, its
|
|
# framework loaded by the system; absent on every other target.
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
objc2 = { version = "0.6.5", optional = true }
|
|
block2 = { version = "0.6.2", optional = true }
|
|
objc2-foundation = { version = "0.3.2", optional = true, default-features = false, features = ["std", "NSArray", "NSDictionary", "NSError", "NSProcessInfo", "NSString", "NSURL", "NSValue"] }
|
|
objc2-core-ml = { version = "0.3.2", optional = true, default-features = false, features = [
|
|
"std", "block2", "MLModel", "MLModel_MLModelCompilation", "MLModelConfiguration", "MLMultiArray", "MLDictionaryFeatureProvider",
|
|
"MLFeatureProvider", "MLFeatureValue", "MLComputePlan", "MLComputePlanDeviceUsage", "MLComputeDeviceProtocol",
|
|
"MLNeuralEngineComputeDevice", "MLModelStructure", "MLModelStructureProgram", "MLModelStructureProgramFunction",
|
|
"MLModelStructureProgramBlock", "MLModelStructureProgramOperation",
|
|
] }
|
|
# The Metal member: the platform's GPU interface, its kernels compiled at run
|
|
# time by the system's own compiler.
|
|
objc2-metal = { version = "0.3.2", optional = true, default-features = false, features = [
|
|
"std", "MTLAllocation", "MTLBuffer", "MTLCommandBuffer", "MTLCommandEncoder", "MTLCommandQueue", "MTLComputeCommandEncoder",
|
|
"MTLComputePipeline", "MTLDevice", "MTLLibrary", "MTLPipeline", "MTLResource", "MTLTypes",
|
|
] }
|
|
|
|
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
|
|
wgpu = { version = "30.0.1", optional = true, default-features = false, features = ["std", "wgsl", "webgpu"] }
|
|
|
|
[features]
|
|
default = ["quantum", "quantum_toolchain", "quantum_receipt"]
|
|
|
|
# Internal: signature support, pulled in by every sealing feature.
|
|
# (Mirrors the `world` feature in the parent `wai` crate.)
|
|
_signing = ["dep:ed25519-dalek"]
|
|
|
|
# --- core simulation -------------------------------------------------------
|
|
quantum = []
|
|
quantum_toolchain = ["quantum"]
|
|
quantum_mps = ["quantum"]
|
|
quantum_stabilizer = ["quantum"]
|
|
quantum_tableau = []
|
|
# Exact amplitudes, probabilities and samples of a Clifford circuit measured in a
|
|
# product basis, at a cost set by its cut-rank (src/quantum_cutrank.rs).
|
|
quantum_cutrank = ["quantum_tableau", "quantum_sv"]
|
|
# OpenQASM 3 (and the OpenQASM 2 forms in common use) read to one program and
|
|
# lowered to each method's input (src/qasm.rs).
|
|
quantum_qasm = ["quantum", "quantum_sv", "quantum_spd", "quantum_tableau"]
|
|
quantum_mpsim = ["quantum_sv", "quantum_mps"]
|
|
# The job service's engine: a request planned onto a method, run, and answered
|
|
# as the service's JSON, for every host that runs jobs (src/engine/). Numbers
|
|
# are read correctly rounded, so a result a client sends back reads as the
|
|
# double it was.
|
|
quantum_engine = ["quantum_qasm", "quantum_tn", "quantum_cutrank", "quantum_mpsim", "quantum_noisy", "dep:serde", "serde_json/float_roundtrip"]
|
|
quantum_pauli = ["quantum"]
|
|
# Sparse Pauli dynamics at utility scale: arbitrary-angle Pauli rotations on up
|
|
# to 1024 qubits, reproducible bit for bit, with a rigorous truncation bound.
|
|
# Independent of the dyadic core; `from_dyadic` appears when `quantum` is on.
|
|
quantum_spd = []
|
|
# Signed, energy-accounted receipts for it, re-checkable bit for bit anywhere.
|
|
quantum_spd_receipt = ["quantum_spd", "_signing"]
|
|
# Tensor-network states on the hardware graph: simple-update evolution, belief-
|
|
# propagation environments; exact on trees, an independent check on loopy graphs.
|
|
quantum_bptn = ["quantum_spd"]
|
|
# Fault-tolerant resource estimation: logical layout, code distance, exhaustive
|
|
# T-factory search and the space-time frontier, reproducible bit for bit.
|
|
quantum_resource = []
|
|
# Signed, energy-accounted receipts for it, re-checkable bit for bit anywhere.
|
|
quantum_resource_receipt = ["quantum_resource", "_signing"]
|
|
# Noisy Clifford circuits at QEC scale: bit-packed Pauli-frame sampling, detector
|
|
# error models by backward sensitivity, and exact minimum-weight matching.
|
|
quantum_frame = []
|
|
# Tensor-network contraction: hyper-optimised contraction trees, slicing, and
|
|
# amplitudes of circuits far past the state vector, reproducible bit for bit.
|
|
quantum_tn = []
|
|
# Gaussian boson sampling, exactly: hafnians, torontonians, lossy Gaussian states,
|
|
# pattern probabilities, exact samples and the marginals any sampler must match.
|
|
quantum_gbs = []
|
|
# The dense state vector at any angle: gate fusion, diagonal fast paths, threads,
|
|
# the same bits everywhere.
|
|
quantum_sv = []
|
|
# Architecture-level estimation: yoked storage, magic-state cultivation, CCZ
|
|
# factories and reaction-limited time, assembled into whole-machine estimates.
|
|
quantum_arch = []
|
|
# qLDPC memory at circuit level: bivariate-bicycle codes, their depth-8 syndrome
|
|
# cycle, and BP-OSD decoding of the circuit's error model.
|
|
quantum_ldpc = ["quantum_frame"]
|
|
# Quantum-inspired optimisation: simulated bifurcation (ballistic, discrete,
|
|
# heated), simulated annealing and an exact referee, on Ising and Max-Cut.
|
|
quantum_qio = []
|
|
# Union-find decoding in near-linear time over the matching graph.
|
|
quantum_uf = ["quantum_frame"]
|
|
# Noisy circuits: quantum trajectories on the state vector, an exact density-
|
|
# matrix referee, and cross-entropy fidelity against the digital error model.
|
|
quantum_noisy = ["quantum_sv"]
|
|
# Ground states of spin chains by two-site DMRG, held to exact diagonalisation
|
|
# and to the free-fermion solution of the transverse-field Ising chain.
|
|
quantum_dmrg = []
|
|
# Time evolution of spin chains by the time-dependent variational principle,
|
|
# held to exact evolution and to the free-fermion solution of a quench.
|
|
quantum_tdvp = ["quantum_dmrg"]
|
|
# Molecules by DMRG: FCIDUMP integrals, the second-quantised Hamiltonian as an
|
|
# exact MPO, and full configuration interaction as the referee.
|
|
quantum_chem = ["quantum_dmrg"]
|
|
# Neural quantum states: a restricted Boltzmann machine trained by variational
|
|
# Monte Carlo with stochastic reconfiguration, held to exact diagonalisation
|
|
# and DMRG on chains and square lattices.
|
|
quantum_nqs = ["quantum_dmrg"]
|
|
# Mixed states and the observables that distinguish quantum theory from a classical
|
|
# account: density matrices, the partial trace, exact Pauli expectations, CHSH.
|
|
quantum_info = ["quantum"]
|
|
# Qubits AND qutrits: the Weyl-Heisenberg group, the Fourier gate over Z_d, and
|
|
# the controlled sum. Exact for d = 2 and 3; other dimensions are refused.
|
|
quantum_qudit = ["quantum"]
|
|
# Quantum communication and security: BB84 key distribution with an
|
|
# intercept-resend eavesdropper, and the no-cloning theorem priced.
|
|
quantum_comm = ["quantum"]
|
|
# What quantum theory says about encoding and transport: von Neumann entropy, the
|
|
# Schumacher limit, and the Holevo bound that refuses classical compression.
|
|
quantum_source = ["quantum", "quantum_info"]
|
|
# Transport itself: Kraus channels, and tomography to see what arrived.
|
|
quantum_channel = ["quantum", "quantum_info", "quantum_source"]
|
|
# QIR (LLVM-based quantum IR) export — the compiler-facing sibling of OpenQASM.
|
|
quantum_qir = ["quantum", "quantum_toolchain"]
|
|
|
|
# --- receipts & operations -------------------------------------------------
|
|
quantum_receipt = ["quantum", "_signing"]
|
|
quantum_ops = ["_signing"]
|
|
quantum_cal = ["quantum_ops"]
|
|
quantum_mitigate = ["quantum_ops"]
|
|
quantum_qec = ["quantum_ops"]
|
|
quantum_control = ["quantum_cal"]
|
|
quantum_noise = ["quantum_cal"]
|
|
quantum_compile = ["quantum_ops"]
|
|
quantum_atom = ["quantum_ops"]
|
|
quantum_qbom = ["quantum_ops"]
|
|
# The fabric: members, parity against the CPU reference, certification,
|
|
# placement by joules, and a signed receipt naming where a result ran. With the
|
|
# fixed-point core in 32-bit lanes, the kernel an integer-only fabric runs.
|
|
quantum_fabric = ["quantum", "quantum_ops", "quantum_toolchain"]
|
|
# The WebGPU member: one WGSL kernel on Metal, Vulkan, DX12 or a browser's
|
|
# WebGPU, certified bit-exact against the CPU reference on each adapter. Opt-in,
|
|
# and not in `full`: it is the one feature that reaches a platform interface.
|
|
quantum_fabric_webgpu = ["quantum_fabric", "dep:wgpu"]
|
|
# The CUDA member of the fabric (an NVIDIA GPU, native targets only).
|
|
quantum_fabric_cuda = ["quantum_fabric", "dep:cudarc"]
|
|
# The HIP member of the fabric (a GPU the HIP runtime drives, Linux): the CUDA kernel's text, built by HIP's runtime compiler; both libraries loaded at run time.
|
|
quantum_fabric_hip = ["quantum_fabric"]
|
|
quantum_fabric_opencl = ["quantum_fabric", "dep:opencl3"]
|
|
# The simulated FPGA member: Verilator, invoked at run time, compiles the datapath.
|
|
quantum_fabric_fpga = ["quantum_fabric"]
|
|
# The neural-processor member: exact fp16 limb products on the platform's neural processor.
|
|
quantum_fabric_npu = ["quantum_fabric", "dep:objc2", "dep:block2", "dep:objc2-foundation", "dep:objc2-core-ml"]
|
|
quantum_fabric_metal = ["quantum_fabric", "dep:objc2", "dep:objc2-foundation", "dep:objc2-metal"]
|
|
# The dense state vector in single precision on the platform's GPU (macOS).
|
|
quantum_sv_metal = ["quantum_sv", "dep:objc2", "dep:objc2-foundation", "dep:objc2-metal"]
|
|
# The cut-rank table in single precision on the platform's GPU (macOS).
|
|
quantum_cutrank_metal = ["quantum_cutrank", "dep:objc2", "dep:objc2-foundation", "dep:objc2-metal"]
|
|
# The npu-cores member: the gate's arithmetic on a neural processor's compute core, programmed directly (Linux): the program built by the tile array's open toolchain, the host side compiled against the device runtime, both at run time.
|
|
quantum_fabric_npu_cores = ["quantum_fabric"]
|
|
# The tensor-engine member: the gate's products as exact bf16 limb convolutions on a tensor processor's matrix engine, through its kernel toolchain's Python run as a helper.
|
|
quantum_fabric_tensor_engine = ["quantum_fabric"]
|
|
# The matrix-extension member: the gate's arithmetic in the processor's streaming vector mode (SME).
|
|
quantum_fabric_sme = ["quantum_fabric"]
|
|
# The DSP vector-unit member: the gate's arithmetic in the signal processor's vector unit.
|
|
quantum_fabric_dsp = ["quantum_fabric"]
|
|
# The CPU vector-unit members: the gate's arithmetic in the processor's vector extension (avx2, sve, rvv).
|
|
quantum_fabric_vector = ["quantum_fabric"]
|
|
# The dataflow member: the gate's arithmetic on a dataflow accelerator's RISC-V cores, through a device library loaded at run time.
|
|
quantum_fabric_dataflow = ["quantum_fabric"]
|
|
|
|
# --- interference / ML layer ----------------------------------------------
|
|
quantum_vml = []
|
|
quantum_phasor = []
|
|
quantum_qfhrr = ["quantum_vml"]
|
|
quantum_kernel = []
|
|
quantum_qdata = []
|
|
quantum_phasor_meter = ["_signing"]
|
|
|
|
# Everything.
|
|
full = [
|
|
"quantum", "quantum_toolchain", "quantum_mps", "quantum_stabilizer", "quantum_tableau", "quantum_cutrank", "quantum_qasm", "quantum_engine", "quantum_mpsim", "quantum_pauli", "quantum_spd", "quantum_spd_receipt", "quantum_bptn", "quantum_resource", "quantum_resource_receipt", "quantum_frame", "quantum_tn", "quantum_gbs", "quantum_sv", "quantum_arch", "quantum_ldpc", "quantum_qio", "quantum_uf", "quantum_noisy", "quantum_dmrg", "quantum_tdvp", "quantum_chem", "quantum_nqs", "quantum_qir", "quantum_info", "quantum_qudit", "quantum_comm", "quantum_source", "quantum_channel",
|
|
"quantum_receipt", "quantum_ops", "quantum_cal", "quantum_mitigate", "quantum_qec",
|
|
"quantum_control", "quantum_noise", "quantum_compile", "quantum_atom", "quantum_qbom", "quantum_fabric",
|
|
"quantum_vml", "quantum_phasor", "quantum_qfhrr", "quantum_kernel", "quantum_qdata",
|
|
"quantum_phasor_meter",
|
|
]
|
|
|
|
[[test]]
|
|
name = "webgpu_member"
|
|
required-features = ["quantum_fabric_webgpu"]
|
|
|
|
[[test]]
|
|
name = "cuda_member"
|
|
required-features = ["quantum_fabric_cuda"]
|
|
|
|
[[test]]
|
|
name = "cuda_tensor"
|
|
required-features = ["quantum_fabric_cuda"]
|
|
|
|
[[test]]
|
|
name = "metal_member"
|
|
required-features = ["quantum_fabric_metal"]
|
|
|
|
[[test]]
|
|
name = "metal_matrix"
|
|
required-features = ["quantum_fabric_metal"]
|
|
|
|
[[test]]
|
|
name = "metal_tensor_ops"
|
|
required-features = ["quantum_fabric_metal"]
|
|
|
|
[[test]]
|
|
name = "cuda_sv"
|
|
required-features = ["quantum_fabric_cuda", "quantum_sv"]
|
|
|
|
[[test]]
|
|
name = "hip_wmma"
|
|
required-features = ["quantum_fabric_hip"]
|
|
|
|
[[test]]
|
|
name = "hip_member"
|
|
required-features = ["quantum_fabric_hip"]
|
|
|
|
[[test]]
|
|
name = "hip_sv"
|
|
required-features = ["quantum_fabric_hip", "quantum_sv"]
|
|
|
|
[[test]]
|
|
name = "npu_cores_member"
|
|
required-features = ["quantum_fabric_npu_cores"]
|
|
|
|
[[test]]
|
|
name = "tensor_engine_member"
|
|
required-features = ["quantum_fabric_tensor_engine"]
|
|
|
|
[[test]]
|
|
name = "opencl_member"
|
|
required-features = ["quantum_fabric_opencl"]
|
|
|
|
[[test]]
|
|
name = "opencl_sv"
|
|
required-features = ["quantum_fabric_opencl", "quantum_sv"]
|
|
|
|
[[test]]
|
|
name = "fpga_member"
|
|
required-features = ["quantum_fabric_fpga"]
|
|
|
|
[[test]]
|
|
name = "npu_member"
|
|
required-features = ["quantum_fabric_npu"]
|
|
|
|
[[test]]
|
|
name = "sme_member"
|
|
required-features = ["quantum_fabric_sme"]
|
|
|
|
[[test]]
|
|
name = "dsp_member"
|
|
required-features = ["quantum_fabric_dsp"]
|
|
|
|
[[test]]
|
|
name = "vector_member"
|
|
required-features = ["quantum_fabric_vector"]
|
|
|
|
[[test]]
|
|
name = "dataflow_member"
|
|
required-features = ["quantum_fabric_dataflow"]
|
|
|
|
[[test]]
|
|
name = "fabric_expected"
|
|
required-features = ["quantum_fabric"]
|
|
|
|
[[example]]
|
|
name = "stablehlo_gate"
|
|
required-features = ["quantum_fabric"]
|
|
|
|
[[example]]
|
|
name = "rv32_listing"
|
|
required-features = ["quantum_fabric_dataflow"]
|
|
|
|
[[example]]
|
|
name = "tn_cost"
|
|
required-features = ["quantum_tn"]
|
|
|
|
[[example]]
|
|
name = "patch_xeb"
|
|
required-features = ["quantum_sv"]
|
|
|
|
[[example]]
|
|
name = "cutrank_qasm"
|
|
required-features = ["quantum_cutrank"]
|
|
|
|
[[example]]
|
|
name = "cutrank_gpu"
|
|
required-features = ["quantum_cutrank_metal"]
|
|
|
|
[[example]]
|
|
name = "npu_onnx"
|
|
required-features = ["quantum_fabric"]
|
|
|
|
[[example]]
|
|
name = "qio_gset"
|
|
required-features = ["quantum_qio"]
|
|
|
|
[[example]]
|
|
name = "tdvp_quench"
|
|
required-features = ["quantum_tdvp"]
|
|
|
|
[[example]]
|
|
name = "nqs_ground"
|
|
required-features = ["quantum_nqs"]
|
|
|
|
[[example]]
|
|
name = "chem_dmrg"
|
|
required-features = ["quantum_chem"]
|
|
|
|
[[example]]
|
|
name = "dmrg_chain"
|
|
required-features = ["quantum_dmrg"]
|
|
|
|
[[example]]
|
|
name = "uf_bench"
|
|
required-features = ["quantum_uf"]
|
|
|
|
[[example]]
|
|
name = "ldpc_memory"
|
|
required-features = ["quantum_ldpc"]
|
|
|
|
[[example]]
|
|
name = "arch_factoring"
|
|
required-features = ["quantum_arch"]
|
|
|
|
[[example]]
|
|
name = "sv_run"
|
|
required-features = ["quantum_sv"]
|
|
|
|
[[example]]
|
|
name = "sv_bench"
|
|
required-features = ["quantum_sv"]
|
|
|
|
[[example]]
|
|
name = "noisy_bench"
|
|
required-features = ["quantum_noisy"]
|
|
|
|
[[example]]
|
|
name = "gbs_check"
|
|
required-features = ["quantum_gbs"]
|
|
|
|
[[example]]
|
|
name = "tn_path"
|
|
required-features = ["quantum_tn"]
|
|
|
|
[[example]]
|
|
name = "tn_sweep"
|
|
required-features = ["quantum_qasm", "quantum_tn"]
|
|
|
|
[[example]]
|
|
name = "qec_threshold"
|
|
required-features = ["quantum_frame"]
|
|
|
|
[[example]]
|
|
name = "qec_frame"
|
|
required-features = ["quantum_frame"]
|
|
|
|
[[example]]
|
|
name = "utility"
|
|
required-features = ["quantum_spd"]
|
|
|
|
[[example]]
|
|
name = "utility_mz"
|
|
required-features = ["quantum_spd"]
|
|
|
|
[[example]]
|
|
name = "utility_bptn"
|
|
required-features = ["quantum_bptn"]
|
|
|
|
[[example]]
|
|
name = "bell"
|
|
required-features = ["quantum", "quantum_toolchain"]
|
|
|
|
[[example]]
|
|
name = "threshold"
|
|
required-features = ["quantum_qec"]
|
|
|
|
[[example]]
|
|
name = "receipt"
|
|
required-features = ["quantum_toolchain", "quantum_receipt"]
|