@@ -30,7 +30,7 @@ operation MeasureAllZ(register : Qubit[]) : Result {
30
30
}
31
31
32
32
/// # Summary
33
- /// Measures each qubit in a given array in the standard basis.
33
+ /// Measures each qubit in a given array in the Pauli Z basis.
34
34
///
35
35
/// # Description
36
36
/// Measures each qubit in a register in the `Z` basis
@@ -65,8 +65,8 @@ operation MeasureEachZ(register : Qubit[]) : Result[] {
65
65
}
66
66
67
67
/// # Summary
68
- /// Measures each qubit in a given array in the Z basis
69
- /// and resets them to a fixed initial state.
68
+ /// Measures each qubit in a given array in the Pauli Z basis
69
+ /// and resets them to |0⟩ state.
70
70
///
71
71
/// # Input
72
72
/// ## targets
@@ -86,14 +86,8 @@ operation MResetEachZ(register : Qubit[]) : Result[] {
86
86
}
87
87
88
88
/// # Summary
89
- /// Measures a single qubit in the X basis,
90
- /// and resets it to a fixed initial state
91
- /// following the measurement.
92
- ///
93
- /// # Description
94
- /// Performs a single-qubit measurement in the X-basis,
95
- /// and ensures that the qubit is returned to |0⟩
96
- /// following the measurement.
89
+ /// Performs a single-qubit measurement in the Pauli X basis,
90
+ /// and resets `target` to the |0⟩ state after the measurement.
97
91
///
98
92
/// # Input
99
93
/// ## target
@@ -109,14 +103,8 @@ operation MResetX(target : Qubit) : Result {
109
103
}
110
104
111
105
/// # Summary
112
- /// Measures a single qubit in the Y basis,
113
- /// and resets it to a fixed initial state
114
- /// following the measurement.
115
- ///
116
- /// # Description
117
- /// Performs a single-qubit measurement in the Y-basis,
118
- /// and ensures that the qubit is returned to |0⟩
119
- /// following the measurement.
106
+ /// Performs a single-qubit measurement in the Pauli Y basis,
107
+ /// and resets `target` to the |0⟩ state after the measurement.
120
108
///
121
109
/// # Input
122
110
/// ## target
@@ -134,14 +122,8 @@ operation MResetY(target : Qubit) : Result {
134
122
}
135
123
136
124
/// # Summary
137
- /// Measures a single qubit in the Z basis,
138
- /// and resets it to a fixed initial state
139
- /// following the measurement.
140
- ///
141
- /// # Description
142
- /// Performs a single-qubit measurement in the Z-basis,
143
- /// and ensures that the qubit is returned to |0⟩
144
- /// following the measurement.
125
+ /// Performs a single-qubit measurement in the Pauli Z basis,
126
+ /// and resets `target` to the |0⟩ state after the measurement.
145
127
///
146
128
/// # Input
147
129
/// ## target
@@ -154,20 +136,17 @@ operation MResetZ(target : Qubit) : Result {
154
136
}
155
137
156
138
/// # Summary
157
- /// Measures the content of a quantum register and converts
158
- /// it to an integer. The measurement is performed with respect
159
- /// to the standard computational basis, i.e., the eigenbasis of `PauliZ`.
139
+ /// Measures the content of a quantum register and converts it to an integer.
140
+ /// The measurement is performed with respect to the standard computational basis,
141
+ /// i.e., the eigenbasis of `PauliZ`. Input register is reset to the |00...0⟩ state,
142
+ /// which is suitable for releasing the register back to a target machine.
160
143
///
161
144
/// # Input
162
145
/// ## target
163
146
/// A quantum register in the little-endian encoding.
164
147
///
165
148
/// # Output
166
149
/// An unsigned integer that contains the measured value of `target`.
167
- ///
168
- /// # Remarks
169
- /// This operation resets its input register to the |00...0> state,
170
- /// suitable for releasing back to a target machine.
171
150
operation MeasureInteger(target : Qubit []) : Int {
172
151
let nBits = Length(target);
173
152
Fact(nBits < 64, $"`Length(target)` must be less than 64, but was {nBits}." );
0 commit comments