Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Comparison

Physical and logical qubits

A physical qubit is a controllable two-state degree of freedom; a logical qubit is encoded information whose operations and error protection are defined by a code and a control protocol.

Edition released Entry updated Coverage: Overview · Technical · Research
On this page

Explanation and significance

A device can contain thousands of controllable physical degrees of freedom while supporting far fewer protected logical qubits. The distinction concerns what carries the information and what operations preserve it. A physical qubit need not be a literally two-level object: a transmon or atom has extra levels, but two are selected as the computational subspace. A logical qubit can occupy many physical qubits or a protected subspace of an oscillator. Counting hardware components alone does not establish how long the encoded state survives, which logical gates are available, or whether their errors are corrected. A useful report names the encoding, physical resources, rounds of syndrome measurement, decoding method and actual logical tasks.

Mechanism and mathematical structure

For an n-qubit stabilizer code with r independent commuting generators and no -I in the stabilizer group, the code subspace has dimension 2n−r. It therefore encodes k=n-r logical qubits. The notation [[n,k,d]] records n data qubits, k encoded qubits and distance d. Ancillas for measuring checks are additional physical resources unless a convention explicitly includes them. Logical operators preserve the code space but act nontrivially within it; multiplication by a stabilizer changes their physical representation without changing their action on encoded information.

Plain-text equations
  • 2^(n-r)

Fully worked reference example

Consider the three-qubit repetition encoding |0_L>=|000> and |1_L>=|111>, with q0 on the left. The two generators Z0Z1 and Z1Z2 are independent, so r=2 and k=3-2=1. X_L=X0X1X2 exchanges the codewords. Z_L=Z0 multiplies |111> by -1 and leaves |000> unchanged. A single X error can be diagnosed by the two parity checks, but Z0 is itself a weight-one logical operator. Therefore this encoding protects against the restricted bit-flip error model and is not a distance-three code against arbitrary single-qubit errors. If two additional ancillas perform checks, the apparatus contains at least five physical qubits while the data block still has n=3.

Limits and misconceptions

An encoded state is not automatically a fault-tolerant logical qubit. Error detection followed by rejection of bad shots can improve conditional fidelity while reducing acceptance; it does not demonstrate that arbitrary computations can continue through detected faults. A protected memory is also not equivalent to a universal logical processor. Compare equal-duration, equal-task experiments and include ancilla, communication and factory resources before comparing physical-to-logical ratios.

Scientific relationships

Is a foundation for stabilizer codes, logical error rate and resource estimation. Is distinct from physical gate fidelity: a high-quality native gate is useful but does not itself certify encoded protection.

Operational meaning of an encoded degree of freedom

An encoding map V takes a two-dimensional input space into a larger physical space while preserving inner products.

V†V=I

For the repetition example, the encoding is

V=|000⟩⟨0|+|111⟩⟨1|

Applying V to alpha|0>+beta|1> gives one encoded state, not three independently available specimens of the original. Tracing out two physical qubits leaves this reduced density operator for the remaining qubit.

|α|2|0⟩⟨0|+|β|2|1⟩⟨1|

The relative phase is unavailable in that single-qubit reduced state. It resides in correlations among the physical carriers. This calculation explains precisely why redundancy does not contradict no-cloning.

Consider two candidate inputs |+> and |->. Their encodings differ only by the sign between |000> and |111>. Every individual physical qubit has the same maximally mixed reduced state for both inputs. A single local observer cannot distinguish the encoded plus and minus states, whereas the joint observable X0X1X2 has expectation +1 or -1. The logical information is therefore accessible through a collective operation even when individual marginals reveal none of that phase distinction.

A physical qubit is also a modeling choice. Suppose a device has levels |0>, |1> and |2>. The physical computational projector is P=|0><0|+|1><1|. A state with population in |2> cannot be represented faithfully by a normalized two-by-two density matrix without declaring how that population is treated. Renormalizing the P block silently conditions on no leakage. Reporting that conditioned state alone overstates unconditional success. The full physical state, the leakage probability and the accepted-state statistics should remain distinct.

Plain-text equations
  • V†V=I
  • V=|000><0|+|111><1|
  • |alpha|²|0><0|+|beta|²|1><1|

Resource accounting through an explicit example

Imagine an architecture storing four logical qubits in four rotated distance-five surface-code patches. Each patch has 25 data positions and 24 check ancillas under the basic local layout, giving 196 physical components across the four patches. The encoded logical state space has dimension 24=16, although the 196 two-level components span a formal space of dimension 2196. Most of that larger space is used for constraints, syndrome information and error sectors rather than additional protected user information.

Now reserve one additional patch as a workspace ancilla. Physical count rises to 245 while the number of stored user logical qubits remains four. If a state factory occupies twenty more patches, a total physical-to-user-logical ratio becomes far larger still. This is not a contradiction with the code’s data rate. It reflects a different accounting boundary. A report should name data qubits, check ancillas, logical workspace, communication resources and factory resources separately before giving one combined number.

A device can prepare and measure a logical Bell pair accurately without supporting a protected logical T gate. It can preserve one basis state without preserving an arbitrary superposition. Report the stored states, available logical gates, correction duration, acceptance rules, and failure units separately. The sixteen-dimensional user space and the hardware needed to manipulate it measure different things.

Plain-text equations
  • 2^4=16
  • 2^196

Defining the effective logical channel

An encoded device can be compared with an ideal qubit by specifying three maps. The encoding map E places an input density operator in the physical Hilbert space. The implemented storage or gate protocol N includes every noisy operation and its classical records. A decoding map D returns the protected information to a standard logical output space. Their composition Lambda_L=D composed with N composed with E is the effective logical channel. The decoding map in this definition is a mathematical interpretation of the experiment; it need not mean that every data qubit is physically decoded at the end. Logical observables can supply equivalent information for particular tests.

The definition exposes an ambiguity in claims about logical qubits. If D discards all runs with an unfavorable flag and renormalizes the remainder, the resulting accepted-state transformation is generally nonlinear as a function of the input state. The appropriate linear description is a trace-decreasing completely positive map for acceptance, accompanied by a separate rejection outcome. An unconditional channel can retain a classical failure flag in its output. These choices answer different operational questions. None can be replaced by simply calling an accepted output a logical qubit with a particular fidelity.

For a synthetic preparation protocol, suppose acceptance is 0.80 and Bell-state fidelity conditioned on acceptance is 0.995. If rejected attempts produce an explicitly orthogonal erasure flag, overlap of the unconditional output with the desired Bell state is 0.80 times 0.995, or 0.796. The accepted infidelity is 0.005, the failure-to-deliver probability is 0.20, and the unconditional target overlap is 0.796. All three numbers are meaningful, but they cannot be interchanged. If heralded attempts are repeated until success, the expected number of independent attempts is 1/0.80=1.25; memory errors accumulated while waiting must then be included in a separate protocol calculation.

Logical observables need not be local physical observables

A logical observable is defined by its action within the encoded space. Given an isometry V and a single-qubit observable A, a physical representative A_phys satisfies V† A_phys V=A. Its action outside the code is not fixed by that equation. Two representatives can agree perfectly on valid codewords and behave differently on leaked or otherwise erroneous states. This distinction becomes operational when an experiment measures a physical string and labels the answer a logical measurement without explaining the accompanying syndrome treatment.

For the repetition encoding, Z0 and Z1 both represent logical Z on the code. On the state X0|0_L>=|100>, their measurement outcomes disagree: Z0 returns -1 while Z1 returns +1. The discrepancy does not mean the code has two contradictory logical Z observables. The state is outside the original code sector, and interpretation requires the inferred recovery or frame. Applying the correction X0 makes the two representatives agree again. Equivalently, a frame-aware estimator flips the sign of the Z0 result while leaving the Z1 result unchanged. This is why a logical-observable estimate and its decoding convention form one scientific specification.

Separating a lifetime improvement from preparation overhead

Consider an explicitly illustrative model in which an unencoded memory has process-survival score F_P(t)=exp(-t/T_P), with T_P=100 microseconds. An encoded protocol has an initialization and finalization factor 0.97 and a storage factor exp(-t/T_L), with T_L=1000 microseconds. Its comparable score is F_L(t)=0.97 exp(-t/1000). Equating the two gives ln(0.97)=t(1/1000-1/100), hence t=3.384 microseconds. Below that duration, fixed overhead makes the encoded protocol score lower; above it, slower storage decay compensates the overhead. At 50 microseconds the scores are approximately 0.6065 and 0.9227.

These functions are chosen to illustrate accounting and are not complete qubit channels or measured fidelities. A real comparison must specify which state or process statistic is fitted, whether long-time behavior approaches a nonzero baseline, and whether errors have one or several time constants. The useful conclusion is structural: an improvement in an asymptotic decay constant does not alone determine short-operation performance. Encoding, idle protection, decoding, and the duration of the intended task must be placed on the same comparison boundary.

Sources

  • Daniel Gottesman · · Thesis · arXiv · DOI 10.48550/arXiv.quant-ph/9705052
    Verification scope

    Stabilizer Codes and Quantum Error Correction
    Daniel Gottesman · · Thesis · Preprint recorded · arXiv

    Citation identity checked ·

    Stabilizer algebra and fault-tolerance foundations; no current experimental ranking.

  • Austin G. Fowler et al. · · Review article · Preprint recorded · arXiv
    Verification scope

    Citation identity checked ·

    Architecture and surface-code tutorial; numerical thresholds remain model-specific.