MResetZ operation

Fully qualified name: Std.Measurement.MResetZ

operation MResetZ(target : Qubit) : Result

Summary

Performs a single-qubit measurement in the Pauli Z basis, and resets target to the |0⟩ state after the measurement.

Input

target

A single qubit to be measured.

Output

The result of measuring target in the Pauli Z basis.