try_measure_one_z¶
- guppyft.code.iceberg.logical.try_measure_one_z(block, i)[source]¶
Fallible non-destructive measurement in the Z basis of the qubit with index
i.- Return type:
- Returns:
The measurement outcome, if no error was detected during the gadget, otherwise
nothing.
Note
It does not detect errors that occur before the gadget. To do so, use
measure_syndrome()instead.