MeasurementGate(key: str = '', invert_mask: Tuple[bool, ...] = ())¶
Indicates that qubits should be measured plus a key to identify results.
The string key of the measurement.
A list of values indicating whether the corresponding qubits should be flipped. The list’s length must not be longer than the number of qubits, but it is permitted to be shorted. Qubits with indices past the end of the mask are not flipped.
__init__(key: str = '', invert_mask: Tuple[bool, ...] = ()) → None¶
Initialize self. See help(type(self)) for accurate signature.
known_qasm_output(qubits, …], args)
Returns lines of QASM output representing the gate on the given qubits or None if a simple conversion is not possible.
Returns an application of this gate to the given qubits.
Describes how to draw something in a text diagram.
Checks if this gate can be applied to the given qubits.
Toggles whether or not the measurement inverts various outputs.