Measure
- class braket.circuits.measure.Measure(**kwargs)[source]
Bases:
QuantumOperatorClass
Measurerepresents a measure operation on targeted qubitsInits a
Measure.- Raises:
ValueError –
qubit_countis less than 1,ascii_symbolsareNone, orascii_symbolslength !=qubit_count
- property ascii_symbols: tuple[str]
Returns the ascii symbols for the measure.
- Type:
tuple[str]
- to_ir(target=None, ir_type=IRType.OPENQASM, serialization_properties=None, **kwargs)[source]
Returns IR object of the measure operator.
- Parameters:
target (QubitSet | None) – target qubit(s). Defaults to None
ir_type (IRType) – The IRType to use for converting the measure object to its IR representation. Defaults to IRType.OpenQASM.
serialization_properties (SerializationProperties | None) – The serialization properties to use while serializing the object to the IR representation. The serialization properties supplied must correspond to the supplied
ir_type. Defaults to None.
- Return type:
Any- Returns:
Any – IR object of the measure operator.
- Raises:
ValueError – If the supplied
ir_typeis not supported.