Engineering index

Selene notes

Every @guppy kernel in this repo — qubit count, ancilla pattern, shot count, and the visualization route it feeds. Written for compiler / runtime people who want to know what the site is actually asking Selene to do.

Known limitations
Reusable primitive: add_const_controlled

Built for the G2 experiment in quantum/nadarasa_g2_lib.py: a controlled ripple-add of a classical constant into an n-qubit register, ~4n Toffolis, fits inside one Selene window. Pure Guppy, no external gate library beyond the standard set.

nadarasa_g2.two_window

quantum/nadarasa_g2.py + nadarasa_g2_lib.py
qubits
n + 1 data, 1 ancilla (n = ⌈log₂ N⌉, N ∈ {16, 32, 64})
ancilla
mid-circuit measure + reset between windows (the 'classical glue')
shots
800 / slope × 23 slopes × 9 configs

Stresses Selene's mid-circuit measurement + reset path. The glue layer between coherent windows is the experiment, not an implementation detail.

nadarasa.modal_projector

quantum/nadarasa_demo.py
qubits
4 data + 1 ancilla
ancilla
single mid-circuit measurement (the modal projector P_{p,s₀})
shots
1000 / slope

Smallest possible wind-tunnel for the SRP projection from Draft §3.1 / §4. Big enough to falsify a coding bug, small enough to verify classically.

shor_period_finding

quantum/generate_demos.py (shor case)
qubits
3 + 3
ancilla
QFT + modular exponentiation, terminal measurement
shots
1024

Reference kernel — confirms the Guppy + Selene toolchain is wired correctly before trusting the experimental ones.

qsvt_polynomial

quantum/generate_demos.py (qsvt case)
qubits
3 + 1 signal
ancilla
QSP phase sequence with terminal measurement
shots
1024

Tests the phase-rotation primitive used in Notebook 1 (Arun Polynomial / q-series QSVT).

qml_swap_test

quantum/generate_demos.py (qml_swap case)
qubits
2×3 + 1 control
ancilla
single CSWAP ancilla, terminal Hadamard + measure
shots
2048

Standard SWAP-test geometry. Reused by the QTDA kernel for Vietoris–Rips fidelity.

qtda_vietoris_rips

quantum/generate_demos.py (qtda case)
qubits
8-patient amplitude encoding × 2 + 1 control
ancilla
CSWAP, 28 pair runs
shots
2048 / pair

Largest end-to-end Selene workload in the repo. Shows the SWAP-test primitive composing into a downstream classical pipeline (Betti numbers).

← Reproduce locallyFrontier →Cite this →