Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
自从我进入 QCL 已经有一段时间了,但我在试图弄清楚measure regXor的功能时遇到了一些困难measure regX,m。
measure regX
measure regX,m
这对量子寄存器有什么作用?和m整数?
m
在 Bernhard 的 Ömer 博士论文 Structured Quantum Programming 中,附录 A.3.1.4 中明确指出 measure regX——对寄存器执行测量regX和 measure regX,m——对寄存器执行测量regX并将测量结果写入经典变量m。
regX
如果您不了解量子测量背后的模型,就很难完全理解 QCL 的作用。但粗略地说,测量随机选择一个跨越量子叠加的基础量子态,regX并将其写入变量m。