-
Suppose I would like to simulate a quantum circuit as an MPS. This can be done initializing the circuit with state = MPS_computational_state("0" * n) and then applying/contracting the gates in
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
For everyone's interest, I implemented some quick & dirty functions that return an MPO here. I used it to solve a VQE problem, so it's not thoroughly tested, but it seems to work. |
Beta Was this translation helpful? Give feedback.
-
I think the best approach, which is not implemented yet sadly, would be as you say,
In meantime one could also manually decompose into two body gates. |
Beta Was this translation helpful? Give feedback.
-
Multi-qubit gates are now handled by |
Beta Was this translation helpful? Give feedback.
I think the best approach, which is not implemented yet sadly, would be as you say,
In meantime one could also manually decompose into two body gates.