cirq.measure_each¶
-
cirq.measure_each(*qubits, key_func: Callable[cirq.ops.raw_types.QubitId, str] = <class 'str'>) → List[cirq.ops.gate_operation.GateOperation][source]¶ Returns a list of operations individually measuring the given qubits.
The qubits are measured in the computational basis.
Parameters: - *qubits – The qubits to measure.
- key_func – Determines the key of the measurements of each qubit. Takes the qubit and returns the key for that qubit. Defaults to str.
Returns: A list of operations individually measuring the given qubits.