You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that conditional_gate now is designed to work in a probabilistic way. I think a batched evaluation can work. But I want to know if there is a way to get the accurate expectation value, which is averaged over conditional measurement outcomes.
Now it gives -1 and +1 each with a 0.5 possibilities. But I want to get 0 as an expectation instead. And I suppose in principle this is implementable in the tensor contraction manner.
And this is also related to #46 , where the expectation value of circuits with conditional gates is needed.
The text was updated successfully, but these errors were encountered:
Thanks for your reply! I think you are right that multicontrol is the correct choice for my example codes. And I realize that this works for QCNN as well.
Or somehow, multicontrol and cond_measure are the same thing based on the philosophy of deferred measurement
That makes sense in the cases above and in most cases I can think about.
I found that
conditional_gate
now is designed to work in a probabilistic way. I think a batched evaluation can work. But I want to know if there is a way to get the accurate expectation value, which is averaged over conditional measurement outcomes.An example:
Now it gives -1 and +1 each with a 0.5 possibilities. But I want to get 0 as an expectation instead. And I suppose in principle this is implementable in the tensor contraction manner.
And this is also related to #46 , where the expectation value of circuits with conditional gates is needed.
The text was updated successfully, but these errors were encountered: