Skip to content

Questions on quantum circuit simulation and probability approximation #101

Answered by jcmgray
ChienKaiMa asked this question in Q&A
Discussion options

You must be logged in to vote

Is maybe Circuit.amplitude what you are looking for? See here & here. It's generally cheaper to compute than either the full state vector and also easier than sampling. If you are investigating performance, you might want to consider some of the things here.

The method sample in QuiMB can simulate larger circuits and do the work faster. I wonder if it is possible to obtain the probability amplitude of some states by using _sample_conditionals or other variables used during sample. If it is possible, how accurate is the approximation or how to know how accurate it is?

Apart from the threshold simplify_atol, which is generally close to the dtype precision, there is no approximation in the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jcmgray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants