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
Copy file name to clipboardExpand all lines: intro.Rmd
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -578,10 +578,9 @@ Can you tell what is the expected value of the observable $Z$ of the ancilla qub
578
578
579
579
<!-- Solution: it's just $\braket{\psi U \psi}$ -->
580
580
581
-
However, we might be interested in the imaginary part of
582
-
$\braket{\psi|U|\psi}$. To estimate that, we need to slightly change the
581
+
With the method described we can estimate the real part of $\braket{\psi|U|\psi}$ however, being it a complex number, in order to fully describe it we need a procedure to estimate also its imaginary part. To estimate that, we need to slightly change the
583
582
circuit. After the first Hadamard gate, we apply on the ancilla qubit a
584
-
phase gate $S$, which gives to the state $\ket{1}$ a phase of $-i$. To get
583
+
phase gate $S$, which gives to the state $\ket{1}$ a phase of $-i$. This operation may be interpreted as a 90 degrees rotation, enabling us to swap the real and imaginary axis to then make a measurement on the imaginary one. To get
585
584
the intuition behind this, let's recall that the imaginary part of a
0 commit comments