SyndromeMeasOp user defined type
Namespace: Microsoft.Quantum.ErrorCorrection
Package: Microsoft.Quantum.Standard
Represents an operation that is used to measure the syndrome of an error-correcting code block.
newtype SyndromeMeasOp = ((Microsoft.Quantum.ErrorCorrection.LogicalRegister => Microsoft.Quantum.ErrorCorrection.Syndrome));
Example
Measure syndromes for the bit-flip code $S = \langle ZZI, IZZ \rangle$ using scratch qubits in a non–fault tolerant manner:
let syndMeasOp = SyndromeMeasOp(MeasureStabilizerGenerators([
[PauliZ, PauliZ, PauliI],
[PauliI, PauliZ, PauliZ]
], _, MeasureWithScratch));
Remarks
The signature (LogicalRegister => Syndrome) represents an operation
that acts jointly on the qubits in LogicalRegister and some auxiliary
qubits followed by a measurements of the auxiliary qubits to extract a
Syndrome value representing the Result[] of these measurements.
See Also
反馈
提交和查看相关反馈