3
$\begingroup$

I implemented the following circuit: irc

I am interested in measuring the expected energy of the circuit. I am using Cirq. I am wondering what are the next steps. Sorry if the question seems very basic, but I am not sure how to interpret the measurement gate to extract this energy.

enter image description here

Thank you.

$\endgroup$
7
  • 1
    $\begingroup$ Circuits don't have a defined quantity called energy. Do you have a Hamiltonian in mind, and want to measure the energy of the output of the circuit w.r.t. that Hamiltonian? $\endgroup$ Jun 22, 2019 at 14:25
  • $\begingroup$ That is a great question! First of all, nice to meet you! Second, I just adding the paper for reference cs.umd.edu/class/fall2018/cmsc657/projects/group_16.pdf This is actually a big question I have: I am still working on understanding how to take a hamiltonian and develop an ansatz, and in this particular case, how to do the reverse. $\endgroup$ Jun 22, 2019 at 18:02
  • 1
    $\begingroup$ Having (very) briefly skimmed that paper you mentioned, I'd be quite suspicious of the circuit you're trying to implement. It seems that the authors have implicitly assumed that $\sum_nX_n$ and $\sum_nZ_nZ_{n+1}$ commute, which they don't $\endgroup$
    – DaftWullie
    Jun 24, 2019 at 7:14
  • $\begingroup$ @DaftWullie: Thank you for telling me! $\endgroup$ Jun 24, 2019 at 18:10
  • $\begingroup$ @DaftWullie It's pretty common to see Hamiltonians that decompose into non-commuting terms being simulated via Trotterization. And the particular alternation of X basis and Z basis stuff is particularly common; it shows up in Grover, in the QAOA, etc. $\endgroup$ Jun 24, 2019 at 20:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.