class cirq.google.XmonMeasurementGate(key: str = '', invert_mask: Tuple[bool, ...] = ())[source]

Indicates that qubits should be measured, and where the result goes.

This measurement is done in the computational basis.

__init__(key: str = '', invert_mask: Tuple[bool, ...] = ()) → None

Initialize self. See help(type(self)) for accurate signature.

Methods

 from_proto(op) is_measurement(op, cirq.ops.raw_types.Operation]) is_xmon_op(op) 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. on(*qubits) Returns an application of this gate to the given qubits. parameterized_value_from_proto(message) parameterized_value_to_proto(param, float], out) text_diagram_info(args) Describes how to draw something in a text diagram. to_proto(*qubits) try_get_xmon_gate(op) validate_args(qubits) Checks if this gate can be applied to the given qubits. with_bits_flipped(*bit_positions) Toggles whether or not the measurement inverts various outputs.