zeta-quantum
Quantum extension of Zeta Reticula.
Real-time, calibration-aware compilation with Affine Weyl IR + salience-driven fidelity quantization.
zeta-quantum is a Rust library + HTTP service that:
- Compiles circuits into Phi-IR (Affine Weyl group words)
- Estimates integrated obstruction (
S_X) using a modality-aware QPU model - Projects obstruction into BMS-observable channels (with optional escape routes)
- Computes toy implementations of:
- Theorem 1: nonlocal Lindblad evolution + subsystem reduction
- Theorem 2: flux/holonomy sector + entanglement witness
- Radiative visibility: when entropy could become geometric (new physics options)
Status
- Library crate:
zeta-quantum - Server binary:
zeta-quantum-server(Axum)
Installation
Quickstart (library)
use HashMap;
use ;
let mut calibration = new;
calibration.insert;
calibration.insert;
let mut q = new;
let mut circ = default;
circ.elements.push;
circ.elements.push;
let = q.quantize_with_bms?;
println!;
# Ok::
Architecture
Data flow
flowchart LR
A[Circuit JSON / PhiCircuit] --> B[Phi-IR
(Affine Weyl words)]
B --> C[QPU model
(modality + calibration graph)]
C --> D[Cost / integrated obstruction
S_X]
D --> E[BMS projection
(observable + escape route)]
D --> F[Theorem 1
nonlocal dynamics]
D --> G[Theorem 2
flux/holonomy]
E --> H[Radiative visibility]
Module map
flowchart TB
subgraph Core
phi_ir[phi_ir.rs
PhiCircuit/PhiElement/WeylGen]
qpu[qpu.rs
QPU/Modality + Dijkstra]
cost[cost.rs
integrated_obstruction]
cache[cache.rs
LRU path cache]
err[error.rs
ZetaError]
end
subgraph Theory
bms[bms.rs
BMSObservable/EscapeRoute]
nld[nonlocal_dynamics.rs
entropy + Lindblad step]
flux[flux_holonomy.rs
FluxSector]
rad[radiative_entropy.rs
RadiativeVisibility]
end
lib[lib.rs
QuantumQuantizer]
api[api.rs
Axum + OpenAPI]
phi_ir --> lib
qpu --> lib
cost --> lib
cache --> qpu
bms --> lib
nld --> lib
flux --> lib
rad --> lib
lib --> api
Run the API server
The service listens on http://0.0.0.0:8080.
OpenAPI
GET /openapi.json(advertised on startup; may be wired via your router configuration)
API
- POST
/optimize
Example payload:
Notes
modality:superconductingiontrapneutralatom
calibrationkeys use the format"<qA>-<qB>" -> error_rate.bms_route:nonescalarholographic
Configuration
cargo add zeta-quantumto add the library to your projectcargo run --bin zeta-quantum-serverto run the API server
Development workflow
cargo testto run testscargo build --release --bin zeta-quantum-serverto build the server binary./target/release/zeta-quantum-serverto run the server
Performance
QPU::find_optimal_pathis Dijkstra-based.- A global LRU cache memoizes shortest paths across requests to speed repeated routing.
Numerical safety (current model)
von_neumann_entropyuses eigenvalues of the symmetrized density matrix and clamps small negative eigenvalues.- Flux/holonomy computations apply an epsilon threshold to suppress floating-point noise.
Release / deploy
For local deployment, build the server binary:
Then run ./target/release/zeta-quantum-server.
License
See LICENSE.