Quantum Computing Master Course — 099. State Tomography
Lesson 099: State Tomography
Smartyfy Quantum Computing Master Course
Prerequisites and objectives
Quantum state tomography estimates a density matrix from measurements on many independently prepared copies of the same state. You will reconstruct a qubit from Pauli statistics, check physical validity, and explain how finite samples and imperfect measurement models limit the result.
The object being estimated is a preparation’s state, not an amplitude list extracted from one unknown copy. Every shot consumes another prepared system or changes the one measured. Stable repeated preparation is therefore a substantive assumption.
Three real numbers determine a qubit
A qubit has ρ=(I+rxX+ryY+rzZ)/2, where rj=Tr(σjρ). The trace-one Hermitian matrix is therefore determined by three real parameters, subject to rx²+ry²+rz²≤1.
Written as rows, ρ=[[(1+rz)/2,(rx−iry)/2],[(rx+iry)/2,(1−rz)/2]]. This formula shows why computational-basis populations alone are insufficient: they determine rz but leave rx and ry unknown.
To estimate all three components, measure separate groups of freshly prepared copies in the X, Y, and Z bases. One should not measure X, then Y, then Z on the same copy and treat those results as measurements of the unchanged original state.
Implement the three settings
A computational-basis measurement already measures Z, assigning +1 to bit zero and −1 to bit one. To measure X, apply H first and then perform the same readout.
To measure Y, apply S† first, then H, then computational readout. Chronologically this is S† followed by H, so the premeasurement unitary is HS†. With S=diag(1,i), the transformed observable is (HS†)†Z(HS†)=Y.
This order and sign can be checked using |+i⟩=(|0⟩+i|1⟩)/√2, which should give the Y-plus outcome with certainty. Reversing the gates or using S instead can change which observable is measured.
Turn counts into Bloch components
For axis j, let nj+ and nj− be the plus and minus counts, with Nj their sum. The empirical expectation is r̂j=(nj+−nj−)/Nj=2nj+/Nj−1.
Under independent ideal measurements, this is an unbiased estimate of rj. The hat indicates an estimate, not a known exact value. Insert the three estimates into the Bloch formula to obtain the linear-inversion density estimate ρ̂.
| Axis | Plus count | Minus count | Estimated component |
|---|---|---|---|
| X | 70 | 30 | 0.4 |
| Y | 60 | 40 | 0.2 |
| Z | 70 | 30 | 0.4 |
These explicitly constructed counts give ρ̂=[[0.7,0.2−0.1i],[0.2+0.1i,0.3]]. Its Bloch-vector length is 0.6, so its eigenvalues are (1±0.6)/2, namely 0.8 and 0.2.
The estimate is valid and mixed. The counts do not establish that the true state equals those decimals exactly, nor that its eigenvalues are known without uncertainty.
Quantify ideal sampling variation
A single Pauli outcome has variance 1−rj². The sample mean therefore has variance (1−rj²)/Nj. A plug-in standard-error estimate uses r̂j in place of the unknown rj.
For the X counts above, the plug-in standard error is √(0.84/100), approximately 0.091652. For Y it is √(0.96/100), approximately 0.097980. These numbers describe each estimated expectation, not the uncertainty of every matrix eigenvalue directly.
Confidence statements require a stated statistical procedure. A naive normal approximation can be poor at small sample sizes or near probabilities zero and one. In particular, all identical observed outcomes do not prove that the true probability is exactly one.
If axes are measured on independent groups with a stable source, their count fluctuations are independent in this model. Drift or correlated preparations can invalidate that assumption and require a different uncertainty analysis.
Finite samples can yield an unphysical estimate
Suppose ten shots on each axis yield nine plus outcomes. Linear inversion gives r̂=(0.8,0.8,0.8), whose squared length is 1.92. The implied smaller eigenvalue, (1−√1.92)/2, is approximately −0.192820.
No density matrix can have that negative eigenvalue. The data can nevertheless occur through finite-sample fluctuation from a physical state with positive probabilities for all those records. The invalid matrix is a limitation of the unconstrained estimator, not evidence of negative physical probabilities.
One simple repair rescales this vector radially to the unit sphere, giving (1,1,1)/√3. That produces a valid matrix, but it changes the estimator and can introduce bias. It is not generally the same as a maximum-likelihood fit.
A constrained likelihood fit instead chooses a positive trace-one matrix that best explains the observed counts under the declared measurement model. Its output still needs uncertainty reporting and model validation; a valid matrix is not automatically an accurate estimate.
Informational completeness and missing directions
A measurement design is informationally complete when its probabilities determine the state uniquely in the assumed dimension. X, Y, and Z statistics are complete for a qubit because they determine all three Bloch components.
The real three-outcome POVM from the previous lesson is not complete for arbitrary qubit tomography. Its effects contain no Y component, so states with opposite y components and identical x and z components give the same probabilities.
A single fixed POVM with m outcomes has at most m−1 independent probabilities because they sum to one. General qubit tomography therefore requires at least four outcomes in such a single setting; four is necessary but not sufficient without independent effects. Multiple separately labelled settings, such as X, Y, and Z, provide a different measurement design.
More outcomes alone therefore do not guarantee completeness. The effects must probe enough independent operator directions. Completeness is also distinct from precision: a complete design with very few shots can still give a poor estimate.
Scaling and calibration limits
A general n-qubit density matrix has 4^n−1 real parameters after Hermiticity and trace normalization, before positivity restrictions. Full unrestricted tomography therefore becomes costly as system size grows.
Promises such as low rank or a known structured family can reduce requirements, but those promises must be justified. Estimating a few observables is often a different and smaller task than reconstructing the entire state.
The reconstruction also assumes the actual measurements match the stated effects. Miscalibrated rotations or readout assignment errors can bias the reconstructed state. State-preparation and measurement errors cannot always be separated using the same limited data without additional assumptions or calibration.
Four exercises with worked solutions
-
A Z setting gives 30 zeros and 70 ones. Find r̂z.
Solution. Zero is the +1 outcome, so r̂z=(30−70)/100=−0.4. The estimated upper-left matrix population is (1−0.4)/2=0.3.
-
Can X and Z statistics distinguish |+i⟩ from |−i⟩?
Solution. No. Both have rx=rz=0. Their y components are +1 and −1, so a Y-sensitive measurement is needed to distinguish their statistics.
-
How many shots replace 100 to reduce an ideal standard error by a factor of four?
Solution. Sixteen times as many are needed because standard error scales as N^−1/2. The new count is 1600 for that setting, assuming unchanged state and measurement quality.
-
Does imposing positivity remove all statistical uncertainty?
Solution. No. It restricts estimates to physical states but cannot create missing data. Different physical states can still plausibly explain a finite record.
Five explained multiple-choice questions
-
General qubit tomography needs enough data to determine: A. Three real Bloch components. B. Only rz. C. Four independent complex amplitudes. D. The global phase of a ket.
Answer: A. Hermiticity and trace leave three real parameters; global phase is not a state observable.
-
The Y measurement sequence before Z readout is: A. H then S† in the stated convention. B. S alone. C. S† then H. D. H alone.
Answer: C. Chronological S† then H gives HS†, whose transformed Z observable is Y.
-
A negative eigenvalue from linear inversion necessarily means: A. The physical system has negative probabilities. B. The input must have been pure. C. The measurement design was necessarily incomplete. D. The estimate is not a valid density matrix.
Answer: D. Finite sampling can push an unconstrained estimate outside the physical state set.
-
Three outcomes automatically make a qubit POVM informationally complete: A. Always. B. No; independent operator directions are required. C. Whenever the effects are positive. D. Yes, if all three effects have nonzero trace.
Answer: B. The real three-outcome example is blind to the y direction.
-
Repeated measurements on one changing copy substitute for independent preparations: A. Yes, with no assumptions. B. No, they generally probe postmeasurement states instead. C. Yes, if the axes differ. D. Only the shot labels need changing.
Answer: B. Standard tomography assumes fresh copies of a stable preparation, not an unmodeled sequence of disturbances.
Pitfalls and summary
Track settings, signs, counts, and assumptions explicitly. Check both informational completeness and matrix positivity, then report uncertainty and calibration limitations. Tomography estimates a repeated preparation; it does not expose a complete unknown state from one shot.
Primary sources and further study
These sources support the definitions and context. The numerical examples, exercises, and explanations here were prepared for this lesson. Research papers are optional advanced reading.