-
Notifications
You must be signed in to change notification settings - Fork 123
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
Quantum circuit from MPS #487
Comments
Hi, the short answer is no inherent support for doing that. The strategy of converting an MPS to a quantum circuit can be straight-forward. You just first canonicalize the MPS, and then compile each unitary to a quantum circuit. However, compiling generic n-qubit unitary to a quantum circuit is very inefficient, which requires exponential many gates. A straight-forward approach is:
Alternatively, you could use the variational approach to approximate the gate. For example, the following paper used Yao and the code is available on Github: |
Hi Prof Liu, can I follow up with your comments above?
Do you mean that you use the variational approach to approximate the whole target state (say a N-site GHZ state) with your ansatz or just certain operator with your ansatz? Thanks! |
The whole state, please check the this code repo: https://github.com/frankwswang/MSQR.jl , which is a part of our unpublished work. |
Thanks for sharing your latest code here! I think I did not ask clearly enough before, but my question is that you also approximate the MPS with a quantum circuit using some kind of gradient descent in Eq. (3)? |
Yes. We can use of the parameter shift rule to compute the gradient of the overlap function. |
Hi,
I am a regular user of ITensor new to Yao. I am wondering if the package has the functionality of producing an approximate quantum circuit of one and two qubit gates given an MPS (may be imported from ITensor etc from a DMRG calculation). There are couple of papers along that line that has been published in recent years like
https://arxiv.org/abs/2209.00595
https://journals.aps.org/pra/abstract/10.1103/PhysRevA.101.032310
I want to use Yao for a similar purpose, so I was wondering if there is inherent support for doing that here. Any help will be appreciated.
The text was updated successfully, but these errors were encountered: