measure_and_reset¶
- guppylang.std.qsystem.helios.measure_and_reset(q: qubit) Measurement[source]¶
System primitive destructive measurement, returning a Measurement value. Call .read() on the value to block until the result is available.
The qubit is borrowed, and is reset to the \(|0\rangle\) state after measurement. The qubit value maps to the same ion after the operation, so it can be used again.