measure: Measure

Description Usage Arguments Value Note See Also

View source: R/Measure.R

Description

a single MeasurementGate applied to all the given qubits. The qubits are measured in the computational basis.

Usage

1

Arguments

...

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.

Value

An operation targeting the given qubits with a measurement.

Note

ValueError if the qubits are not instances of Qid.

See Also

Other Measurement: measure_each(), measurement_gate()


henry090/Cirq documentation built on June 13, 2020, 1:28 a.m.