MEASURE

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

Produce a MEASURE instruction.

Parameters:
  • qubit – The qubit to measure.
  • classical_reg – The classical register to measure into, or None.
Returns:

A Measurement instance.