Skip to main content

Crate sirraya_qutub

Crate sirraya_qutub 

Source
Expand description

Sirraya QuTub: a quantum circuit and noise simulator.

§Quickstart

use sirraya_qutub::{QuantumRegister, create_bell_state};

// Build a Bell state (|00> + |11>) / sqrt(2) and inspect it.
let bell = create_bell_state()?;
assert!((bell.fidelity(&bell)? - 1.0).abs() < 1e-9);

// Or build a register by hand and apply gates directly.
let mut reg = QuantumRegister::new(2)?;
reg.apply_hadamard(0)?;
reg.apply_cnot(0, 1)?;
let outcome = reg.measure_all_qubits()?;
assert_eq!(outcome.len(), 2);

§Modules

  • complex: complex-number arithmetic underlying every amplitude and matrix entry.
  • core: pure-state (QuantumRegister) and mixed-state/noise (DensityMatrix) simulation, circuit building, and standard algorithm building blocks (Bell/GHZ/W states, QFT, Deutsch-Jozsa, Grover).
  • xeb: noise calibrated to published hardware fidelities, validated via cross-entropy benchmarking.
  • reservoir: quantum reservoir computing on top of the core simulator.

Re-exports§

pub use complex::Complex;
pub use core::create_bell_state;
pub use core::create_ghz_state;
pub use core::create_w_state;
pub use core::inverse_quantum_fourier_transform;
pub use core::quantum_fourier_transform;
pub use core::DensityMatrix;
pub use core::PauliOp;
pub use core::QuantumAlgorithm;
pub use core::QuantumBenchmark;
pub use core::QuantumCircuit;
pub use core::QuantumRegister;
pub use reservoir::demonstrate_quantum_reservoir_computing;
pub use reservoir::QuantumReservoir;
pub use reservoir::QuantumReservoirComputer;
pub use xeb::cross_entropy_benchmark_fidelity;
pub use xeb::run_xeb_demo;
pub use xeb::HardwareCalibration;

Modules§

complex
Complex-number arithmetic (Complex) underlying every amplitude and matrix entry used throughout this crate. Complex number arithmetic used throughout the simulator.
core
Pure-state (QuantumRegister) and mixed-state/noise (DensityMatrix) simulation, the chainable QuantumCircuit builder, and standard algorithm building blocks. Core quantum simulation primitives: pure-state simulation (QuantumRegister), mixed-state/noise simulation (DensityMatrix), a convenience circuit builder (QuantumCircuit), standard algorithm building blocks (Bell/GHZ state prep, QFT, Deutsch-Jozsa, Grover), and throughput benchmarking (QuantumBenchmark).
reservoir
Quantum reservoir computing (QuantumReservoir, QuantumReservoirComputer) built on top of the core simulator. Quantum reservoir computing: a fixed, randomly-wired entangling qubit network used as a high-dimensional nonlinear dynamical system (QuantumReservoir), paired with a trained linear readout (QuantumReservoirComputer) so only the readout – not the reservoir itself – needs training.
xeb
Hardware-calibrated noise models and cross-entropy benchmarking (XEB). Hardware-calibrated noise and cross-entropy benchmarking (XEB).