It’s been a while since I got into QCL but I ran into some difficulties by trying to figure out the functioning of measure regX or measure regX,m.
What does this do on the quantum registers? And the m integer?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Bernhard’s Ömer PhD thesis Structured Quantum Programming, in Appendix A.3.1.4 clearly states that
measure regX— performs measurement on registerregXandmeasure regX,m— performs measurement on registerregXand writes the result of the measurement to classical variablem.If you do not understand the model behind quantum measurement it is difficult to fully understand what QCL does. But roughly speaking measurement chooses randomly one of the basis quantum states which spans the quantum superposition in which
regXis and writes it to variablem.