open-standards/wai/wai-quantum/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 382cf672a2 wai-quantum tn: Network::reduce fixes the indices a tensor allows one value of
Where a tensor is zero unless index i takes v, every tensor holding i keeps
its entries at v and drops i, repeated until nothing changes; then simplify.
Only zeros are read and entries selected. Projections run through diagonal
gates and the deltas of split ones, so a CZ beside a projected output becomes
scalars. Open indices are never fixed. simplify itself is unchanged, so
networks that do not call reduce keep their bits.

On the same 61-qubit CZ circuits (depth 8/12/16/20, 64 trials): log10
multiply-adds 5.35/8.25/11.22/14.26 split and reduced, against 6.58/9.23/
12.09/15.16 split alone and 8.03/12.46/16.09/19.64 whole and simplified.

tn_cost, the CLI's tn subcommand and the service's tensor_network method
reduce their split networks. Tests: split networks reduced, and whole-gate
networks reduced, give the state vector's amplitudes; open outputs too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 20:29:22 -04:00
..
arch_factoring.rs wai-quantum 0.3.29: the architecture around the code, priced, and the 2025 factoring machine re-run 2026-10-04 17:33:48 -04:00
bell.rs wai-quantum circuit2: the crate's consumers follow the circuit's gateset 2026-10-09 11:19:49 -04:00
chem_dmrg.rs wai-quantum 0.3.36: molecules and neural quantum states, held to exact answers 2026-10-05 16:15:50 -04:00
cutrank_qasm.rs wai-quantum cutrank: the steps planned once, tables stored at a chosen precision, and orders annealed for less work 2026-10-19 11:21:04 -04:00
dmrg_chain.rs wai-quantum 0.3.34: ground states of spin chains by DMRG, held to exact answers 2026-10-05 09:50:20 -04:00
gbs_check.rs wai-quantum 0.3.27: Gaussian boson sampling, exactly 2026-10-04 16:19:25 -04:00
ldpc_memory.rs wai-quantum 0.3.30: qLDPC memory at circuit level, re-derived from the circuit up 2026-10-04 21:30:40 -04:00
noisy_bench.rs wai-quantum: branching noisy trajectories (shots that share a history share a state) 2026-10-17 11:36:07 -04:00
npu_onnx.rs wai-quantum: the limb model in the portable format; f16_of at 2048 2026-10-14 10:03:55 -04:00
nqs_ground.rs nqs_ground: a projected network up to 24 spins is held to its sector alone 2026-10-08 14:17:42 -04:00
patch_xeb.rs wai-quantum examples: patched cross-entropy benchmarking from shots (patch_xeb) and one amplitude's contraction cost (tn_cost) 2026-10-19 11:21:04 -04:00
qec_frame.rs wai-quantum 0.3.25: error correction at circuit level, sampled, modelled and decoded exactly 2026-10-04 14:21:56 -04:00
qec_threshold.rs wai-quantum 0.3.25: error correction at circuit level, sampled, modelled and decoded exactly 2026-10-04 14:21:56 -04:00
qio_gset.rs wai-quantum 0.3.31: quantum-inspired optimisation, a re-runnable classical baseline 2026-10-05 05:27:49 -04:00
receipt.rs wai-quantum circuit2: the crate's consumers follow the circuit's gateset 2026-10-09 11:19:49 -04:00
rv32_listing.rs wai-quantum 0.5.2: the dataflow device's vector engine as a member 2026-10-15 01:49:20 -04:00
stablehlo_gate.rs wai-quantum: the gate's products as a portable matrix-unit program 2026-10-15 10:06:50 -04:00
sv_bench.rs wai-quantum: tiled multi-gate state-vector passes; vectorised wide-gate kernel 2026-10-17 11:21:27 -04:00
sv_run.rs wai-quantum 0.3.28: the dense state vector at any angle, the same bits threaded or not 2026-10-04 17:01:39 -04:00
tdvp_quench.rs wai-quantum 0.3.35: time evolution of spin chains by TDVP, held to exact answers 2026-10-05 11:13:38 -04:00
threshold.rs wai-quantum 0.3.13: mixed states, and a bound that classical physics cannot reach 2026-09-07 03:47:38 -04:00
tn_cost.rs wai-quantum tn: Network::reduce fixes the indices a tensor allows one value of 2026-10-19 20:29:22 -04:00
tn_path.rs wai-quantum 0.3.26: tensor-network contraction, hyper-optimised, sliced, bit-identical 2026-10-04 16:03:22 -04:00
uf_bench.rs wai-quantum 0.3.32: union-find decoding in near-linear time 2026-10-05 07:46:12 -04:00
utility.rs wai-quantum 0.3.22: sparse Pauli dynamics at utility scale, and identical bits on every platform 2026-10-01 15:13:52 -04:00
utility_bptn.rs wai-quantum 0.3.23: belief-propagation tensor networks, a second method for the same circuits 2026-10-01 20:40:14 -04:00
utility_mz.rs wai-quantum 0.3.22: sparse Pauli dynamics at utility scale, and identical bits on every platform 2026-10-01 15:13:52 -04:00