New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to perform a measurement in acqdp? #20
Comments
fix alibaba/acqdp alibaba#20 Add `Circuit.measure` that returns one-bit random outcome and a conditional state. Add `Circuit.collapse` to collapse a circuit into a single state. Add corresponding tests.
fix alibaba/acqdp #20 Add `Circuit.measure` that returns one-bit random outcome and a conditional state. Add `Circuit.collapse` to collapse a circuit into a single state. Add corresponding tests.
Hello gtaifu, We have added two methods The method The method Please let us know if those functionalities meet your need. |
@cupjinhuang thank you! I think it should work for us. I will integrate it into our open-source simulation platform (pyqcisim). If there is any question, I will return to you! |
There are two classes (
Measurement
andPureMeas
) incircuit.py
. Since this simulator is based on tensor-network and density matrix, the effect of a measurement can be represented as a density-matrix update. To my understanding, this is the method acqdp adopts.In some cases, we are only interested in the state vector update, where a measurement collapses the state vector and returns a single bit representing the measurement result. How could we do this in acqdp?
Thanks!
The text was updated successfully, but these errors were encountered: