MEASURE

pyquil.gates.MEASURE(qubit, classical_reg)[source]

Produce a MEASURE instruction.

Parameters
  • qubit (Union[Qubit, QubitPlaceholder, FormalArgument, int]) – The qubit to measure.

  • classical_reg (Union[MemoryReference, Tuple[str, int], List[Any], str, None]) – The classical register to measure into, or None.

Return type

Measurement

Returns

A Measurement instance.