Returns a single MeasurementGate applied to all the given qubits.
cirq.ops.measure(
*target,
key: Optional[str] = None,
invert_mask: Tuple[bool, ...] = ()
) -> cirq.ops.Operation
Used in the notebooks
Used in the guide |
Used in the tutorials |
|
|
The qubits are measured in the computational basis.
Args |
*target
|
The qubits that the measurement gate should measure.
|
key
|
The string key of the measurement. If this is None, it defaults
to a comma-separated list of the target qubits' str values.
|
invert_mask
|
A list of Truthy or Falsey values indicating whether
the corresponding qubits should be flipped. None indicates no
inverting should be done.
|
Returns |
An operation targeting the given qubits with a measurement.
|
Raises |
ValueError if the qubits are not instances of Qid.
|