toroidal-noise
Quantum noise channels with density matrix simulation. Includes toroidal dephasing suppression via the spectral gap of cycle graph Laplacians.
Channels
| Channel | Parameters | Kraus operators |
|---|---|---|
dephasing(gamma) |
gamma in [0,1] |
2 |
amplitude_damping(gamma) |
gamma in [0,1] |
2 |
depolarizing(p) |
p in [0,1] |
4 (I, X, Y, Z) |
toroidal_dephasing(gamma, n, alpha) |
gamma in [0,1], n >= 2, alpha > 0 |
2 |
Toroidal dephasing
The effective dephasing probability is suppressed by the spectral gap of the cycle graph C_n:
gamma_eff = gamma * lambda_1 / (lambda_1 + alpha)
where lambda_1 = 2 - 2*cos(2*pi/n). Larger grids produce smaller spectral
gaps and stronger noise suppression.
Usage
use ;
// Start with |+> state
let rho = apply_unitary;
// Apply toroidal dephasing (12x12 grid, alpha=1.0)
let rho_out = apply_channel;
// Off-diagonal coherence is preserved better than plain dephasing
assert!;
Reference
S. Cormier, "Toroidal Logit Bias," Zenodo, 2026. DOI: 10.5281/zenodo.18516477
License
MIT