Description Usage Arguments Value Note See Also
a single MeasurementGate applied to all the given qubits. The qubits are measured in the computational basis.
1 |
... |
parameters to pass: target – The qubits that the measurement gate should measure. key – The string key of the measurement. If this is NULL, 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. NULL indicates no inverting should be done. |
An operation targeting the given qubits with a measurement.
ValueError if the qubits are not instances of Qid.
Other Measurement:
measure_each()
,
measurement_gate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.