cirq.measure_each

cirq.measure_each(*qubits, key_func: Callable[cirq.ops.raw_types.Qid, str] = <class 'str'>) → List[cirq.ops.raw_types.Operation][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.