cirq.google.XmonStepResult.sample¶
-
XmonStepResult.sample(qubits: List[cirq.ops.raw_types.QubitId], repetitions: int = 1)[source]¶ Samples from the wave function at this point in the computation.
Note that this does not collapse the wave function.
Returns: Measurement results with True corresponding to the |1> state. The outer list is for repetitions, and the inner corresponds to measurements ordered by the supplied qubits.