Phase-flip error

Also known as: dephasing error

On this page 7

A phase-flip error is an unwanted Pauli-Z operation on a qubit that leaves the basis states |0⟩ and |1⟩ in place but reverses the sign of their relative phase, turning |+⟩ into |-⟩. In quantum error correction, it is one of the two elementary error types, alongside the bit-flip error, and it has no classical counterpart, because classical bits carry no phase.

Phase-flip errors arise mainly from dephasing, the gradual loss of phase coherence caused by fluctuating fields and coupling to the environment, which is why the term is often used together with dephasing error. On many current platforms, dephasing is the dominant noise channel, so codes and hardware designs that handle it efficiently have a direct advantage.

How a phase-flip error changes a qubit

A qubit in the state a|0⟩ + b|1⟩ becomes a|0⟩ – b|1⟩ after a phase flip. Measured in the computational basis, both states give the same probabilities, so the error is invisible to a Z-basis measurement. It becomes visible only after a basis change, for example a Hadamard gate, which converts the phase difference into a difference in measurement outcomes.

On the Bloch sphere, a phase flip is a rotation by 180 degrees about the z axis: the poles stay fixed while the equator is mirrored. The table below shows how the error acts on common states and whether a standard measurement reveals it.

Initial stateState after errorDetectable in Z basisDetectable in X basis
|0⟩|0⟩No changeNo change
|1⟩-|1⟩, a global phaseNo changeNo change
|+⟩|-⟩NoYes
|-⟩|+⟩NoYes
a|0⟩ + b|1⟩a|0⟩ – b|1⟩NoPartially
Effect of a phase-flip error on typical qubit states

Physical causes of dephasing

Phase errors originate when the energy difference between |0⟩ and |1⟩ fluctuates. Each fluctuation slightly changes the speed at which the relative phase advances, and over time the accumulated phase becomes uncertain. Averaged over many random histories, this produces a dephasing channel, which flips the phase with some probability p.

Coherence is characterized by two times. T1 describes energy relaxation from |1⟩ to |0⟩, and T2 describes the decay of phase coherence. They obey T2 no greater than 2T1, and when T2 is well below that limit, pure dephasing dominates. The common sources differ by platform.

PlatformMain dephasing sourceCommon mitigation
Superconducting qubitsFlux noise, two-level system defects, residual photonsFixed-frequency designs, filtering, echoes
Trapped ionsMagnetic field and laser phase noiseClock-state encoding, magnetic shielding
Spin qubitsNuclear spin bath, charge noiseIsotopic purification, sweet spots
Neutral atomsLaser intensity and differential light shiftsMagic wavelengths, spin echo
Cat qubitsSingle-photon loss maps to phase flipsLarger cat size, two-photon stabilization
Typical sources of phase-flip errors by qubit platform

Phase-flip versus bit-flip errors

The bit-flip error is an unwanted X and the phase-flip error an unwanted Z. The two are related by a Hadamard basis change, since H Z H = X, so any code that corrects bit flips can be turned into one that corrects phase flips by working in the |+⟩, |-⟩ basis. Their combination, an unwanted Y, is a simultaneous bit and phase flip.

This symmetry is the basis of error discretization: because I, X, Y and Z span all single-qubit operations, a code that corrects arbitrary X and Z errors on a qubit corrects any error on it, including small coherent rotations. The comparison below summarizes the differences that matter in practice.

PropertyBit-flip errorPhase-flip errorCombined Y error
Pauli operatorXZY = iXZ
Classical analogYes, a flipped bitNoneNone
Detected by stabilizers of typeZ-type checksX-type checksBoth
Typical relative rateLower on many platformsOften dominantUsually lowest
Comparison of the elementary Pauli error types

Correcting and suppressing phase-flip errors

The simplest correction scheme is the three-qubit phase-flip code, which encodes |+⟩ and |-⟩ as |+++⟩ and |—⟩ and detects a single flipped sign by measuring the parities X1X2 and X2X3. It corrects one phase flip but no bit flips, so it is a teaching device rather than a working memory. The Shor code combines it with the bit-flip code to protect against both.

In the surface code, X-type stabilizer measurements detect phase flips while Z-type measurements detect bit flips, and decoders such as minimum-weight perfect matching infer the most likely error chain from the syndrome. Below the threshold of roughly one percent per operation, increasing the code distance suppresses the logical error rate exponentially.

  • Dynamical decoupling applies echo pulses that refocus slow phase drift without any encoding.
  • Biased-noise codes, such as the XZZX surface code and repetition codes on cat qubits, spend more redundancy on the dominant phase-flip channel.
  • Error mitigation methods, including zero-noise extrapolation, reduce the bias that dephasing introduces in measured expectation values.

Common misunderstandings about phase errors

Phase errors are easy to underestimate because they do not show up in simple readout tests. A qubit prepared in |0⟩ and measured immediately looks perfect even when its T2 time is very short. Only interference experiments, such as Ramsey and Hahn echo sequences, reveal how quickly phase information is lost.

A second misunderstanding treats every phase error as random. Slow, systematic phase drift is a coherent error, and coherent errors can add up quadratically across many gates, causing far worse damage than an equal amount of random noise. Techniques such as Pauli twirling convert them into stochastic phase flips that error correction handles predictably.

The simple explanation

A qubit holds two possibilities at once, and the two are linked by a hidden timing relationship, a bit like two swings moving in step. A phase-flip error puts one swing out of step with the other. Nothing looks different if you only check where each swing is, but the pattern they make together is reversed.

That hidden pattern is exactly what quantum algorithms rely on, so losing it ruins the calculation. Quantum error correction watches for these silent flips by comparing groups of qubits and repairing the damage before it spreads.

How it is used in practice

An engineering team characterizing a new superconducting processor measures T1 of about 150 microseconds but T2 of only 60 microseconds on several qubits. Because T2 falls far below twice T1, they conclude that pure dephasing dominates, and spectroscopy traces it to flux noise from the tunable couplers.

The team responds on two levels. In hardware, they adjust the idle frequencies to flux-insensitive sweet spots and add dynamical decoupling sequences during idle periods, raising T2 above 120 microseconds. In the error correction layer, they run a distance-3 surface code experiment and verify that X-type stabilizers fire less often after the changes. The logical error per cycle drops noticeably, confirming that phase-flip errors were the limiting factor for that device.