|View source on GitHub|
Single-qubit state tomography.
cirq.experiments.single_qubit_state_tomography( sampler: "cirq.Sampler", qubit: "cirq.Qid", circuit: "cirq.AbstractCircuit", repetitions: int = 1000 ) ->
The density matrix of the output state of a circuit is measured by first doing projective measurements in the z-basis, which determine the diagonal elements of the matrix. A X/2 or Y/2 rotation is then added before the z-basis measurement, which determines the imaginary and real parts of the off-diagonal matrix elements, respectively.
See Vandersypen and Chuang, Rev. Mod. Phys. 76, 1037 for details.
||The quantum engine or simulator to run the circuits.|
||The qubit under test.|
||The circuit to execute on the qubit before tomography.|
||The number of measurements for each basis rotation.|
|A TomographyResult object that stores and plots the density matrix.|