Verace Quanta
Hybrid qubit and neuron methods for quantum error correction, syndrome decoding and learned control pre-compensation.
- Qubit state: Qubits act as a fixed physical channel
- RY and RZ rotations: Angles supplied by the network for every wire
- Intended state: The state pre-compensation aims for
Overview
Verace Quanta is a hybrid quantum-classical research line in which a classical neural network supplies every trainable parameter and the qubits act as a fixed physical channel. It asks two questions. First, can a network invent quantum error-correcting encodings, matching hand-designed codes where the optimum is known and finding noise-adapted codes, such as codes for amplitude damping, where no optimal small code is known? Second, can a network learn to pre-distort control inputs so that an accurate qubit, driven through miscalibrated control hardware, still produces the intended state? The work does not claim that standard quantum error correction is wrong.
The work runs in stages, each with its own specification and benchmark. Phase A trains a network that emits the angles of variational encoding and decoding circuits on a differentiable mixed-state simulator built on PennyLane, open-source software by others. Recovery traces out wires, because a unitary decoder alone cannot remove entropy. Phase B trains a per-round recurrent decoder, a design that follows AlphaQubit, a decoder from another organisation, against minimum-weight perfect matching. Phase C trains a classical pre-network, a variational circuit and a classical head end to end. Stage D, input pre-compensation, trains a residual network through a differentiable qubit to invert a fixed control distortion.
In the lab's records the learned bit-flip code matches the 3-qubit repetition code at every noise level. On amplitude damping it beats the bare qubit but trails the Leung code. The GRU decoder approaches matching without beating it. The hybrid model matches a classical network with 58 against 354 parameters. Pre-compensation raised held-out fidelity from 0.59 to 0.99 on one qubit and from 0.17 to 0.92 on three qubits with 12 controls, though it failed its gate at the strongest distortion. Hardware records report ibm_fez fidelity rising from 0.75 to 0.93.
The simulator pipeline, the baselines, the fidelity metrics, the SDP and Petz recovery ceilings, the Phase B and C models, the pre-compensation stages and the hardware preparation and execution scripts are implemented and tested; one record reports 27 of 27 tests passing. The records disagree in places. The overview states that Phases B and C had not started, while the benchmark reports give their results. The Phase B gap to matching is given as about 12 to 16% in one record and 1 to 4% in another. The depolarizing result is recorded both as equal to the bare qubit and as overtaking the [[5,1,3]] code. The topological qubit and invention method documents are design notes only.
Status
Experiments. Implemented and tested code exists for all stages, with recorded benchmark runs in simulation and on hardware, though some of the lab's reports disagree with one another.
Simulator
A state of length 1 is updated again and again by the same small step, in two ways. Switch between rotating it and adding to it, and watch its length.
- the circle: every state of length 1
- Length of the state at the end
- 1.000
- Drift from length 1
- 0.0%
- Turned in all
- 248°
- Updates
- 24
Switch between the two methods with the same step size. Adding the step leaves the circle; rotating cannot.
This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.
Architecture
Learned QEC pipeline
Phase A: a network emits encoding and decoding angles for variational circuits, a noise channel acts on the code qubits, and recovery traces out ancillas before scoring by entanglement fidelity. Stages A1, A2 and A3 cover bit-flip, depolarizing and amplitude damping noise.
Hand-designed baseline codes
The 3-qubit repetition code, the [[5,1,3]] perfect code and the Leung [[4,1]] approximate amplitude-damping code serve as references for the learned codes.
Optimal recovery ceiling
Single-shot fidelity bounds from Petz recovery and a semidefinite program give an upper limit against which learned codes are compared.
Neural syndrome decoder
Phase B: a GRU reads detector outcomes round by round and predicts the logical correction, a per-round recurrent design that follows AlphaQubit, a decoder from another organisation. It is compared with minimum-weight perfect matching and with no decoding on repetition and surface codes.
Hybrid quantum-classical model
Phase C: a classical pre-network feeds a variational quantum circuit whose outputs pass to a classical head, all trained end to end on synthetic classical and quantum-labelled data.
Input pre-compensation
Stage D: a residual network learns the inverse of a fixed control distortion, so that the control actually delivered to an accurate qubit yields the intended state.
Amortized control versus GRAPE
A once-trained network is compared with per-target gradient optimization of the control vector, on held-out targets, for both fidelity and time.
Hardware validation path
The inverse network is trained offline on a coherent error model, checked on a simulated device noise model, then run as a single batched job on real IBM processors.
Non-Markovian coherence test
A system qubit coupled to a leaky memory qubit, with optional direct depolarizing noise, separates noise that timed control can recover from noise that sets a floor.
Implementation
Mechanisms as they are implemented in the source code, with the constants the code uses.
- Entanglement fidelity convention
- Fidelity is computed from Kraus operators as with a maximally mixed logical input. Average fidelity is derived as a dependent cross-check, .
- Effective logical channel
- The scored map is : encode, apply noise, decode, then discard wires. The partial trace is the entropy sink, since a unitary decoder alone cannot correct errors.
- Closed-form stabilizer fidelity
- For stabilizer baselines the encoder isometry is built from the stabilizers. Fidelity is evaluated in closed form as over correctable errors and noise Kraus operators .
- Hardware-efficient angle ansatz
- Each layer applies RY and RZ rotations on every wire followed by a ring of CNOT gates. All angles are supplied externally by
AngleNet, a tanh MLP that maps a noise descriptor to angles wrapped into . - Kraus table as single source
noise.pydefines the Kraus operators of every noise channel once, applies them in PennyLane, and checks completeness, . Code and tests assert against this table.- Petz and SDP recovery ceilings
ceiling.pycomputes the single-shot optimal recovery fidelity for an encoder and noise channel through Petz recovery and a semidefinite program. The test suite checks that both equal one for the identity channel and bound the stabilizer baseline.- Control distortion model
- Delivered control is , where carries gain and crosstalk between controls, the offset is constant detuning and the sine term is a mild nonlinearity.
- Residual pre-compensation neuron
- The network outputs , starting from the naive control . It is trained to minimise by backpropagation through the differentiable qubit , which itself has no trainable parameters.
- Coherent gate-error model
CoherentErrorModelapplies per-control gain, offset and ZZ crosstalk, andCoherentDevicereturns ideal and distorted states differentiably.ControlNetis trained offline against it with restarts to maximise state fidelity.- Inversion-test fidelity on hardware
- The circuit prepares the state produced by the distorted control, then applies the inverse of the ideal state preparation. Fidelity is read as the probability of measuring all zeros, which works on real processors.
- GRAPE-style per-target baseline
- For each target, multi-restart Adam optimises the control vector directly to maximise fidelity. It returns the best control, its fidelity and the elapsed time, for comparison with one forward pass of the amortized network.
- GRU syndrome decoding
- Detector datasets with circuit-level noise are generated with stim, software by others, and a GRU runs over syndrome rounds, with a flat MLP fallback and early-stopped training. The baseline runs matching with pymatching, also by others, on the circuit's detector error model.
- Recoverable versus irreducible noise
- In the non-Markovian device, structured backflow from the memory qubit can be undone by a timed learned controller that preserves the plus state. Direct Markovian depolarization of the system, swept as
p_direct, sets a floor that control cannot remove.
Results
From the lab's own experiments and records. They have not been independently replicated.
Learned bit-flip code matches the repetition code
In stage A1 the learned encoding reproduces the 3-qubit repetition code's fidelity at every bit-flip probability, according to the lab's Phase A records.
Depolarizing results recorded inconsistently
One record shows the learned code's fidelity declining linearly and overtaking the [[5,1,3]] code at about p = 0.14, where that code drops to about 0.75 at p = 0.2. Another summary records A2 as equal to the bare qubit.
Amplitude damping: beats bare, trails Leung
In stage A3 the learned code beats the unencoded qubit but falls short of the Leung [[4,1]] code with optimal recovery, according to the lab's Phase A records.
GRU decoder approaches but does not beat matching
The lab's Phase B records place the recurrent decoder close to minimum-weight perfect matching on repetition and surface codes, without beating it. The size of the gap is reported variously as about 12 to 16%, 1 to 4%, and about 4% on the distance-3 surface code. The records note that beating matching is said to need AlphaQubit-scale data.
Hybrid model matches classical with fewer parameters
In the lab's Phase C experiments the hybrid model matches a classical MLP with 58 against 354 parameters, about 6x fewer. The records also report that it wins in the small-data regime and on quantum-labelled data.
Pre-compensation restores held-out fidelity
The lab's Stage D benchmarks report naive to learned held-out fidelity of 0.59 to 0.99 on one qubit, 0.39 to 0.98 on two qubits with crosstalk, and 0.17 to 0.92 on three qubits with 12 controls.
Pre-compensation fails at extreme distortion
In stage D3 learned fidelity was 0.886 at distortion strength 0.4 but 0.34 at 0.6, and the gate failed. The records give 0.78 as the extreme distortion limit.
Hardware validation of the pre-distortion network
The lab's hardware records report fidelity on ibm_fez rising from 0.75 to 0.93. On ibm_marrakesh the network reached 0.953 against 0.957 for per-target GRAPE, and a local test of the batched 16-circuit job showed 0.76 rising to 0.95.
Concepts
- Discretization theorem
- Syndrome measurement collapses continuous errors onto discrete Pauli errors, so standard error correction already handles continuous noise. The physics grounding note uses this to locate the open problem in noise-adapted codes rather than in error correction as such.
- Noise-adapted codes
- For amplitude damping and biased or correlated noise no provably optimal small code is known. The lab treats this as the genuine opening for learned codes.
- Entropy sink
- Correcting errors removes entropy from the logical system, which no unitary can do. Recovery therefore has to discard wires by partial trace, a discard-based recovery that follows the cited quantum autoencoder work of Romero et al. (2017), by others.
- Ansatz reachability check
- Ansatz angles are fitted to a baseline recovery unitary to confirm that the circuit family can reproduce the baseline fidelity. It is one of the pre-flight checks run before a failed gate is trusted.
- Input pre-compensation thesis
- The qubit is taken to be accurate and the fault to lie in the gap between requested and delivered control. A network corrects the input rather than repairing the output, in contrast to error correction, which adds redundancy to fix the output.
- Stochastic noise ceiling
- T1, T2 and readout noise cap corrected fidelity below 1.0. The lab's records state that input pre-distortion cannot remove this noise and only error correction can.
- Channel orthogonality principle
- A design note argues that the tension between isolating a qubit and controlling it dissolves when the environment and the control couple to different degrees of freedom. It names five axes for separating them: frequency, symmetry, spatial mode, energy gap and measurement selectivity.
- Minimum-weight perfect matching
- A standard classical decoder that pairs syndrome defects along the least likely error paths. It is the reference decoder for Phase B.
- Amortized control
- The inverse control map is learned once, so a single forward pass replaces a separate optimization for every target state.
- Falsification conditions
- The requirements document defines, for each stage, how the thesis would fail. A1 failures are routed through the pre-flight checks before being accepted.
- Decision log
- Twelve locked decisions, D1 to D12, include trace-out recovery, the SDP and Petz ceiling and the pinned fidelity convention. They were refined through repeated critique and fix passes until no open critiques remained.
- Topological qubit decomposition
- A design note decomposes a topological qubit into four requirements: being in the right phase, verifying it, conserving parity and achieving universal control. Quasiparticle poisoning breaks the third by flipping the stored parity.
- Invention method
- A top-down method that decomposes a goal until each branch ends as either a buildable knob with a price or a genuine invariant. The note keeps only the Second Law, no-cloning, causality and uncertainty as true invariants.
- Honesty ledger
- Each claim in the design notes is tagged as proven, contingent or speculative. Each also gets a verdict: buildable now, buildable at a price, or bounded by an invariant.
About this page
Written from the lab's own documents and source code. Figures and results are the lab's measurements as it recorded them at the time, and have not been independently replicated.
Published under the PolyForm Noncommercial License 1.0.0: free for noncommercial use.