Skip to content

Tomography simulation separates a known generating state, finite measurement counts, and a reconstruction algorithm that does not receive the hidden state. This separation allows quantitative tests of bias, uncertainty, and physical constraints. State tomography explains the operational theory.

Helpful background. Measurement sampling supplies finite-shot statistics; density-matrix diagnostics supplies physicality checks.

For POVM effects Em∣sE_{m|s} in setting ss, generate probabilities

pm∣s=Tr⁡(ρEm∣s),∑mEm∣s=I.p_{m|s}=\operatorname{Tr}(\rho E_{m|s}), \qquad \sum_mE_{m|s}=I.

Choose a real basis {Ba}\{B_a\} for Hermitian matrices and expand ρ=∑axaBa\rho=\sum_a x_aB_a. Then p=Mxp=Mx with M(m,s),a=Tr⁡(Em∣sBa)M_{(m,s),a}=\operatorname{Tr}(E_{m|s}B_a).

Informational completeness means the measurement map determines all trace-one Hermitian states. Check the rank and singular values of the design matrix after accounting for normalization constraints. Near linear dependence amplifies count noise even when the matrix has full rank.

Generate independent multinomial counts for each setting with its declared shot allocation. Sampling all settings from one joint multinomial generally describes a different experiment.

For ρ=(I+xX+yY+zZ)/2\rho=(I+xX+yY+zZ)/2, measure X,Y,ZX,Y,Z separately. If n+an_{+a} and n−an_{-a} are counts for axis aa,

r^a=n+a−n−aNa,ρ^lin=12(I+r^⋅σ).\hat r_a=\frac{n_{+a}-n_{-a}}{N_a}, \qquad \hat\rho_{\rm lin}=\frac12(I+\hat{\boldsymbol r}\cdot\boldsymbol\sigma).

Finite sampling can produce ∣r^∣>1|\hat{\boldsymbol r}|>1 and a negative eigenvalue. This does not imply the true state was unphysical; it shows that unconstrained inversion does not enforce positivity.

For the maximally mixed state, each axis has mean zero and variance 1/Na1/N_a. For ∣0⟩|0\rangle, the ideal ZZ outcome is deterministic while XX and YY remain random. These cases test the measurement rotations and the distinction between state purity and outcome uncertainty.

For counts nm∣sn_{m|s}, minimize

−log⁡L(ρ)=−∑s,mnm∣slog⁡Tr⁡(ρEm∣s)-\log\mathcal L(\rho) =-\sum_{s,m}n_{m|s}\log\operatorname{Tr}(\rho E_{m|s})

subject to ρ≥0\rho\geq0 and Tr⁡ρ=1\operatorname{Tr}\rho=1. A factorization ρ=TT†/Tr⁡(TT†)\rho=TT^\dagger/\operatorname{Tr}(TT^\dagger) enforces physicality but introduces redundant parameters and a nonlinear optimization landscape. Convex optimization in ρ\rho exposes the convex constraint directly.

A physical result is not automatically statistically unbiased. Near rank-deficient states, positivity constraints create boundary effects and non-Gaussian uncertainty. Clipping eigenvalues of linear inversion is a different estimator from maximum likelihood and should be named as such.

For a concrete comparison, take counts (90,10)(90,10) for XX, (9,1)(9,1) for YY, and (5,5)(5,5) for ZZ. Linear inversion gives (0.8,0.8,0)(0.8,0.8,0). Its Euclidean projection onto the Bloch ball is (1/2,1/2,0)(1/\sqrt2,1/\sqrt2,0), regardless of shot allocation. The binomial likelihood instead gives approximately (0.78572,0.61859,0)(0.78572,0.61859,0): the more accurately sampled XX expectation moves less.

To reproduce this constrained example, the optimum has z=0z=0 and lies on the boundary. Write x=cos⁡θx=\cos\theta, y=sin⁡θy=\sin\theta with 0<θ<π/20<\theta<\pi/2, and maximize

ℓ(θ)=90log⁡1+x2+10log⁡1−x2+9log⁡1+y2+log⁡1−y2.\ell(\theta)={}90\log\frac{1+x}{2} +10\log\frac{1-x}{2} +9\log\frac{1+y}{2} +\log\frac{1-y}{2}.

The omitted ZZ term is constant at z=0z=0. A bracketed zero of dℓ/dθd\ell/d\theta supplies a transparent one-parameter reference for a general optimizer. At probabilities equal to zero, a zero count contributes zero to the negative log likelihood, while a positive count contributes infinity; silently flooring every probability changes the objective.

Repeat the entire data-generation and reconstruction pipeline for many independent data sets. Evaluate trace distance, infidelity under an explicitly stated convention, observable errors, and interval coverage. An optimizer’s convergence tolerance is not an uncertainty estimate.

Model mismatch matters: generate a small readout bias while reconstructing with ideal effects to show that increasing shots can converge more precisely to a wrong state. If the effects are calibrated, propagate their uncertainty or state that they are treated as exact.

For process tomography, prepare an informationally complete set of input states and reconstruct a Choi matrix. Enforce complete positivity and the appropriate partial-trace constraint, not merely unit trace; see channel numerics.

In the input-first unnormalized convention of that page, the synthetic probability map is

p(m∣s,a)=Tr⁡ ⁣[JE(ρaT⊗Em∣s)],Tr⁡outJE=Iin.p(m|s,a)=\operatorname{Tr}\!\left[ J_{\mathcal E}(\rho_a^{\mathsf T}\otimes E_{m|s}) \right],\qquad \operatorname{Tr}_{\rm out}J_{\mathcal E}=I_{\rm in}.

The transpose acts in the declared input basis. Test a complex input, such as a YY eigenstate: real inputs cannot reveal an omitted transpose. Known input states and measurement effects are assumptions of ordinary process tomography; preparation and readout errors otherwise become part of the inferred process.

A reconstructed qubit Bloch vector is (0.8,0.8,0)(0.8,0.8,0). Find the density-matrix eigenvalues and explain the failure.

Solution

Its length is 1.28≈1.1314\sqrt{1.28}\approx1.1314, so the eigenvalues are (1±1.1314)/2(1\pm1.1314)/2, approximately 1.06571.0657 and −0.0657-0.0657. Each individual expectation lies between −1-1 and 1, but the combined vector violates positivity. Marginal range checks alone are insufficient.

  • James, D. F. V., Kwiat, P. G., Munro, W. J., and White, A. G., “Measurement of qubits,” Physical Review A 64, 052312 (2001), arXiv:quant-ph/0103121.
  • Watrous, J., The Theory of Quantum Information, Cambridge University Press (2018), author’s text — channel-state constraints.