StateTomographyExperiment(qubits: Sequence[cirq.Qid], prerotations: Optional[Sequence[Tuple[float, float]]] = None)¶
Experiment to conduct state tomography.Generates data collection protocol for the state tomography experiment.Does the fitting of generated data to determine the density matrix.
Circuit with parameterized rotation gates to do before thefinal measurements.
The list of rotations on the qubits to perform beforemeasurement.
Matrix of coefficients for the system. Each row is one equationcorresponding to a rotation sequence and bit string outcome forthat rotation sequence. Each column corresponds to the coefficienton one term in the density matrix.
Number of qubits to do tomography on.
__init__(qubits: Sequence[cirq.Qid], prerotations: Optional[Sequence[Tuple[float, float]]] = None)¶
Initializes the rotation protocol and matrix for system.
qubits – Qubits to do the tomography on.
prerotations – Tuples of (phase_exponent, exponent) parameters for gates to apply to the qubits before measurement. The actual rotation applied will be cirq.PhasedXPowGate with the specified values of phase_exponent and exponent. If None, we use [(0, 0), (0, 0.5), (0.5, 0.5)], which corresponds to rotation gates [I, X**0.5, Y**0.5].