Expand description
Quantum channel models for networking protocols.
Provides Kraus-operator-based single-qubit channel primitives (depolarizing, dephasing, amplitude damping) used by BB84, E91, and quantum teleportation simulations.
Structs§
- Amplitude
Damping Channel - Amplitude damping channel (spontaneous emission) with decay rate
gamma. - Dephazing
Channel - Dephasing (phase-flip) channel with probability
p. - Depolarizing
Channel - Depolarizing channel with probability
p.
Traits§
- Noise
Channel - A single-qubit quantum channel acting on a density matrix ρ.
Functions§
- fidelity_
pure - Compute the fidelity F = ⟨ψ|ρ|ψ⟩ for a pure target state |ψ⟩.
- ket_
minus - |−⟩ = (|0⟩−|1⟩)/√2 state
- ket_one
- |1⟩ state
- ket_
plus - |+⟩ = (|0⟩+|1⟩)/√2 state
- ket_
zero - |0⟩ state
- measure_
computational - Measure a single qubit in the computational basis; returns (outcome, collapsed density matrix).
- pure_
state_ density - Build the density matrix ρ = |ψ⟩⟨ψ| from a normalised 2-component state.