VectorSize 6
// The system can be in only one state - |000001>
SigmaX 0
// Non-destructive full measurement returns 1, as expected
Measure
Print measured_value
// Destructive measurement collapses the last qubit to |0>?
MeasureBit 0
Measure
Print measured_value
为什么最后一个量子比特实际上|0>
会崩溃到|1>
?这是模拟器中的错误还是我误解了部分破坏性测量应该如何工作?在about page中,他们给出了一个示例,其中量子比特折叠为|1>
,因此它应该是可能的......