A quantum circuit receives a number — a PLV value between 0 and 1 — and produces a binary outcome: 0 or 1. The question is what happens in between, and why that process sees polarity when a classical classifier cannot.
Each PLV value becomes a rotation angle. The rotation angle becomes a quantum state. The collection of quantum states — one per channel pair — becomes entangled. The entangled state is measured. That measurement is the prediction.
Phase Locking Values (PLV) from EEG channel pairs are encoded as rotation angles on individual qubits:
Each channel pair produces one A-Gate — a 2-qubit circuit with excitatory and inhibitory paths coupled by entangling gates. The full gate sequence:
A classical classifier has learned parameters — weights that adjust during training to accommodate whatever pattern exists in the data. If Patient A's seizures increase PLV values and Patient B's decrease them, the classifier silently learns asymmetric boundaries. It never reports the asymmetry. It just works around it.
The classifier separates ictal from interictal with high confidence — the clusters are well-separated and the boundary is clean. But both patients' ictal windows land in the same cluster. The polarity dimension was discarded at feature extraction, before the boundary was ever drawn. The classifier cannot recover what it was never given.
The A-Gate has no learned parameters. The rotation angle for a PLV of 0.7 is always RY(0.7π). The rotation angle for a PLV of -0.7 is always RY(-0.7π). There is no accommodation mechanism. When Patient B's polarity is inverted, the circuit produces the wrong answer — and that wrong answer is the signal. Sub-chance AUC is not failure. It is a signed geometric readout.
Classical methods compute eigenvalues of covariance matrices, which are invariant under polarity flips. But quantum circuits see the full rotation angles:
PLV value: 0.7
Rotation: RY(0.7π)
State: cos(0.35π)|0⟩ + sin(0.35π)|1⟩
Measurement outcome: 0
PLV value: -0.7 (flipped)
Rotation: RY(-0.7π)
State: cos(-0.35π)|0⟩ + sin(-0.35π)|1⟩
Measurement outcome: 1
This simplified view shows the rotation for a single qubit. In the full circuit, a encodes amplitude on the excitatory qubit and c encodes PLV synchrony on the inhibitory qubit. The coupling layer mixes these two encoded states before measurement — the outcome depends on their joint configuration.
We use 17 qubits (q8–q12, q17–q18, q27–q31, q36, q46–q49) arranged in a heavy-hex subgraph of ibm_torino:
The heavy-hex lattice limits which qubits can directly entangle. Circuit transpilation maps the logical A-Gate connections onto physically adjacent qubits, introducing SWAP operations where direct connections don't exist. The transpiled circuit uses 97 CZ gates at depth 114 — confirmed by hardware execution to follow linear scaling: CZ gates = 14.1M − 17.5 (R² > 0.99).
The A-Gate is not designed to outperform classical seizure detection. It is designed to make geometry visible. A trained classifier absorbs polarity silently — it adjusts its boundary and moves on. The A-Gate cannot do that. Its architectural rigidity is the instrument.
This is the same principle as any physical measurement device: a fixed orientation exposes what a rotating detector would average away. The quantum circuit's fixed measurement basis is its orientation. Manifold polarity is what it measures.
See both patients' trajectories through quantum state space