The five-qubit code encodes one logical qubit into five physical qubits and corrects an arbitrary error on one physical qubit. In a nondegenerate realization, the identity and fifteen one-qubit Pauli operators take the two-dimensional code into sixteen mutually orthogonal syndrome subspaces, filling the 32-dimensional physical Hilbert space.
// Target: quantum-error-correction.bigb
GHZ preparation with Hadamard and controlled-Z gates Created 2026-10-06 Updated 2026-10-14
For , apply a Hadamard gate to one qubit, then controlled-NOTs from it to all others. Replacing each controlled-NOT gate by a target Hadamard, a Controlled-Z gate, and another target Hadamard uses allowed gates. Each one-qubit reduced state is , proving entanglement across each qubit-versus-rest bipartition.
Hadamard transform 2026-10-13
The normalized Hadamard transform maps a vector indexed by binary strings through entries , where the dot product is evaluated modulo two. It is its own inverse and an orthogonal transformation, hence also a unitary operator on complex input vectors. The Hadamard gate is the quantum case, and the Hadamard basis is the image of the computational basis. The Walsh-Hadamard transform gives the same tensor product construction.
For two qubits, applying one Hadamard gate to each prepares the uniform quantum superposition
Each probability amplitude is , so each computational-basis measurement outcome has probability . Applying the Hadamard transform again reconstructs : signed contributions cancel at the other three outputs. Its usefulness lies in combining simple local quantum gates into an operation on exponentially many amplitudes. Extracting useful information still requires an appropriate subsequent transformation and measurement.
Helstrom measurement for the zero and plus states Created 2026-09-24 Updated 2026-10-14
Suppose one qubit is prepared in either of the known pure states and , with equal prior probabilities. Measuring in the computational basis seems natural, but a tilted projective measurement gives better quantum state discrimination. The two density operators and their difference are
The Pauli matrices give , and the eigenvalues of are . Their absolute sum gives trace distance , agreeing with trace distance between qubit states.
The positive spectral projector points along the unit Bloch vector :
The outcome labels and here refer to the sign of the eigenvalue of ; they do not denote a Hadamard basis measurement. Guess after and after . This sign choice is the equal-prior Helstrom measurement for two pure states, a case of the Holevo–Helstrom theorem. [ref]
An explicit orthonormal basis for this projective measurement is
with . Thus the real coefficient rotation angle is relative to the computational basis, while the Bloch vector of is tilted by from the positive axis toward negative . State-vector and Bloch sphere angles differ by a factor of two.
Write and , so . The Born rule gives the conditional outcome probabilities
The event has probability gap , attaining the variational characterization of trace distance. Both preparations are identified correctly with conditional probability , so
For comparison, a projective measurement in the computational basis has conditional outcome probabilities on and on . Guess zero on outcome zero and plus on outcome one. The average success is
and the measured total variation distance is only . The optimal tilted projective measurement gains about in absolute success probability by balancing the two conditional error rates instead of identifying perfectly at the expense of .
Figure 1.
Conditional outcome probabilities and equal-prior success for Z and optimal Helstrom measurements of zero versus plus
. Details.
These are statistics for alternative measurements on independently prepared copies. Applying first and then the tilted projective measurement is a different experiment, because the first measurement in quantum mechanics changes the density operator.
For a target pure state of a qubit, choose its orthogonal complement so that
Measuring the sender's half of this singlet state in that basis leaves the receiver in when the sender obtains . The outcome has probability one half. One classical success flag heralds the exact preparation without conveying the target's classical description.
// Target: quantum-theory.bigb
Impulsive quantum kick 2026-10-14
An impulsive quantum kick is the limit of a pulse with finite integrated Hamiltonian operator, rather than a bounded finite step. For a bounded self-adjoint operator with units of action, a rectangular pulse lasting has exact unitary time evolution for every . In the limiting notation , is the Dirac delta function and
The integral estimate for quantum state continuity at a finite Hamiltonian step no longer tends to zero: the pulse height diverges. A bounded background Hamiltonian operator contributes vanishing evolution during this limit. A more general pulse with noncommuting generators can require time ordering; integrated area alone then need not specify the result.
For example, , with a Pauli matrix, sends a qubit in to . At , the Born rule predicts with probability one, however short the regularized pulse is. Its finite rotation is precisely what a bounded finite step cannot accomplish at the switching instant.
A polarizing beam splitter converts a photon polarization qubit to two paths. Rotating one arm's photon polarization to match the other and recombining at a balanced beam splitter gives . Measurements at phases zero and recover the transverse Bloch vector components; direct counts in the two separated arms recover the population difference. All three components, rather than a fringe alone, determine an arbitrary photon polarization density matrix.
// Target: quantum-theory.bigb
Logical measurement depth is the number of sequential measurement layers required by outcome-dependent basis choices. Depth one means all bases are fixed in advance, so the quantum measurements on distinct qubits can be simultaneous. Classical output corrections may still depend on all outcomes. This does not assert depth-one graph-state preparation or constant-depth classical processing.
Assume that each physical qubit undergoes an independent quantum bit-flip channel with probability during one storage interval, and that encoding, error syndrome extraction, recovery and decoding are all ideal. Use the three-qubit bit-flip syndrome table to apply the indicated minimum-weight recovery. Zero or one bit flips are corrected. Two bit flips have the same error syndrome as the complementary one-site error: for example, gives , so recovery leaves . Three bit flips give and also leave . This exchanges and , and therefore acts as a logical Pauli X gate after decoding.
The number of physical bit flips has a binomial distribution with three trials, hence the logical-error probability is
For a logical density operator , the decoded quantum channel is exactly . Here logical failure means a nontrivial logical Pauli X gate error; a particular input such as can be invariant under that error. At , exactly two flips have probability and three flips have probability , giving . The block succeeds with probability compared with for an unencoded qubit. At , , illustrating the quadratic suppression of rare independent bit flips.
Factoring the improvement gives
Thus one level reduces logical-error probability for , is equal at , and makes it worse for under this same decoder. The suppression arises because a logical error requires at least two physical bit flips. With independent disjoint inner blocks, the same noise model and ideal correction at every level, a concatenated quantum error-correcting code has , with . At , two levels use nine data qubits and give .
Figure 1.
Ideal repetition-code correction suppresses independent bit flips below one half
. Details.
This calculation describes ideal correction of stored information with the specified quantum bit-flip channel. Repeated correction in time additionally requires a fresh specified noise model for each interval; imperfect quantum gates, faulty measurements and correlated errors change the calculation. The timed bit flip during repetition-code syndrome extraction and exact encoded-state failure with a faulty parity check show concretely why this storage calculation alone is not a fault-tolerance result.
Logical qubit 2026-10-14
A logical qubit is a two-dimensional encoded quantum subsystem with chosen orthonormal logical basis states . An encoding linear isometry sends to . In a concatenated quantum error-correcting code, one level's logical qubit supplies one qubit of the next outer code.
Measurement-based quantum computation prepares an entangled resource quantum state, then applies single-qubit quantum measurements, potentially adapting later bases to earlier outcomes. Pauli frame tracking and classical outcome processing convert random physical branches into a specified logical computation. Graph states and one-bit teleportation provide a concrete construction.
Measurement pattern 2026-10-06
A measurement pattern specifies the resource quantum state, the measured qubits, their measurement bases, outcome-dependent basis choices and output corrections or classical relabellings. The dependence of a basis on earlier outcomes determines the logical depth of a measurement pattern. Preparing the resource and processing the final classical results are separate costs.
Mixed state Created 2026-09-29 Updated 2026-10-14
A mixed state is a density operator that is not a rank-one orthogonal projection. In finite dimension it is characterized by , so its purity of a density operator distinguishes it from a pure state.
Compare a pure state quantum superposition with an equal classical choice between two computational-basis states of a qubit:
A projective measurement in the computational basis gives for both density operators. An projective measurement in the Hadamard basis distinguishes them: the Born rule gives for and for . These comparisons use separate copies of each preparation; measuring first changes the state tested by a subsequent measurement.
Figure 1.
Equal computational-basis populations can hide different coherence and X-measurement statistics
. Details.
The off-diagonal entries of encode quantum coherence in the computational basis. Such quantum coherence depends on the basis: is diagonal in the Hadamard basis but remains a pure state. Mixedness is independent of the basis, because a unitary change of basis preserves the eigenvalues and the purity of a density operator.
Even the quantum state ensemble is not unique:
The off-diagonal entries of the two Hadamard basis projectors cancel. Thus the density operator retains precisely what measurements on the system can reveal, while an accessible preparation label carries additional information. A mixed state can also be the reduced density matrix of an entangled state, even when the whole system is in a pure state; classical ignorance about a selected component is not its only physical origin. [ref]
For a normalized two-qubit pure state with coefficient matrix , concurrence is . The displayed convex roof extension defines its mixed-state version. Combining decompositions proves convexity: . Every separable quantum state has a decomposition into product vectors, each with zero determinant, so its concurrence is zero.
For the Hadamard test with a density operator in the auxiliary register, the output control qubit has Pauli Z gate expectation and Pauli Y gate expectation , where . The minus sign comes from the final Hadamard gate, since . Measuring in therefore estimates the imaginary part using the minus-outcome frequency minus the plus-outcome frequency.
One-bit teleportation Created 2026-10-06 Updated 2026-10-07
Apply a Controlled-Z gate to input and a fresh quantum ancilla. Measuring the input in the equatorial qubit measurement basis at angle , with outcome , leaves the unnormalized output
Each branch has probability , independently of the input. The logical output is with known Pauli frame ; the input qubit has been measured, so this does not clone it.
Use CNOT gates to encode one logical qubit and zero ancillas into the repetition subspace spanned by . Apply the phase gate in parallel to all physical qubits, then undo the encoding. The logical phase is multiplied by in one oracle-time layer. This copies computational-basis labels coherently rather than cloning an arbitrary quantum state. Blocks of sizes prepare a dyadic Fourier phase state using parallel oracle applications.