|View source on GitHub|
Gets the data for each rotation string added to the circuit.
cirq.experiments.get_state_tomography_data( sampler: "cirq.Sampler", qubits: Sequence['cirq.Qid'], circuit: "cirq.Circuit", rot_circuit: "cirq.Circuit", rot_sweep: "cirq.Sweep", repetitions: int = 1000 ) -> np.ndarray
For each sequence in prerotation_sequences gets the probability of all 2n bit strings. Resulting matrix will have dimensions (len(rot_sweep)n, 2**n). This is a default way to get data that can be replaced by the user if they have a more advanced protocol in mind.
||Sampler to collect the data from.|
||Qubits to do the tomography on.|
||Circuit to do the tomography on.|
||Circuit with parameterized rotation gates to do before the final measurements.|
||The list of rotations on the qubits to perform before measurement.|
||Number of times to sample each rotation sequence.|
|2D array of probabilities, where first index is which pre-rotation was applied and second index is the qubit state.|