Tomography Simulation
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.
Measurement design as a linear map
Section titled “Measurement design as a linear map”For POVM effects in setting , generate probabilities
Choose a real basis for Hermitian matrices and expand . Then with .
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.
Qubit linear inversion
Section titled “Qubit linear inversion”For , measure separately. If and are counts for axis ,
Finite sampling can produce 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 . For , the ideal outcome is deterministic while and remain random. These cases test the measurement rotations and the distinction between state purity and outcome uncertainty.
Constrained likelihood
Section titled “Constrained likelihood”For counts , minimize
subject to and . A factorization enforces physicality but introduces redundant parameters and a nonlinear optimization landscape. Convex optimization in 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 for , for , and for . Linear inversion gives . Its Euclidean projection onto the Bloch ball is , regardless of shot allocation. The binomial likelihood instead gives approximately : the more accurately sampled expectation moves less.
To reproduce this constrained example, the optimum has and lies on the boundary. Write , with , and maximize
The omitted term is constant at . A bracketed zero of 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.
Synthetic-data validation
Section titled “Synthetic-data validation”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
The transpose acts in the declared input basis. Test a complex input, such as a 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.
Exercise
Section titled “Exercise”A reconstructed qubit Bloch vector is . Find the density-matrix eigenvalues and explain the failure.
Solution
Its length is , so the eigenvalues are , approximately and . Each individual expectation lies between and 1, but the combined vector violates positivity. Marginal range checks alone are insufficient.
References
Section titled “References”- 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.