measure

guppylang.std.qsystem.sol.measure(q: qubit) Measurement[source]

Request a destructive lazy measurement of a qubit, returning a Measurement value. Call .read() on the value to block until the result is available. Access to the ion carrying the qubit is lost, to retain access see measure_and_reset().