Expand description
High-performance quantum annealing primitives.
Accelerates the hot paths in the Python quantum_annealing bridge:
- Simulated annealing: Metropolis-Hastings with exponential schedule
- Ising energy: Vectorized energy evaluation
- Gauge transform: Batch gauge generation and application
- Problem decomposition: Greedy graph partitioning
Structs§
Functions§
- batch_
ising_ energy - Batch evaluate energies for many configurations (rayon-parallelized).
- build_
j_ 🔒index - Build adjacency index for fast delta-energy lookup.
- delta_
energy 🔒 - Delta energy ΔE = E_after - E_before for flipping spin
qubitfroms_qto-s_qin the Ising model H = Σ h_i s_i + Σ J_ij s_i s_j. - gauge_
transform - Apply a gauge transform to Ising biases and couplings.
- generate_
gauges - Generate n_gauges random gauge vectors.
- greedy_
partition - Greedy graph partitioning for problem decomposition.
- ising_
energy - Compute Ising energy for a spin configuration.
- simulated_
annealing - Run simulated annealing on an Ising model.