Skip to content
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

Measurements with time evolution #161

Open
claretgrace0801 opened this issue Aug 19, 2022 · 1 comment
Open

Measurements with time evolution #161

claretgrace0801 opened this issue Aug 19, 2022 · 1 comment

Comments

@claretgrace0801
Copy link
Contributor

When using the pulse models to simulate the time evolution a state, if there are measurements being done in a circuit, the execution fails.

Could time evolution account for measurements?

A possible approach could be to collapse a state, on measurement, into a mixture (with appropraite probabilities) of all the measurement outcomes (to get a density matrix). Then continue evolution from that point on the resulting density matrix.

@BoxiLi
Copy link
Member

BoxiLi commented Aug 25, 2022

It seems that this should now be possible with the new low-level interface solver.step. Similar to the discussion in qutip/qutip#1571, we should be able to evaluate the circuit up to a measurement step, perform the measurement and then start the next step until a second measurement occurs.

Another question that remains to be discussed is how we interpret the measurement:

  • Do we project the state to one of the measurement results or
  • we branch the simulation and keep all possible measurement results.
    In the gate-level QubitCircuit, we go with the second option by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants