The objective of this codercise is to observe the outputs of the QPE subroutine when arbitrary states are prepared on the target wire. Prepare the target wires in a superposition of the prepare_eigenvector_superposition
function has been given to you. You can test it out by uncommenting the examples given in the code or prepare your own state on the target wires by modifying alpha
and beta
arguments to observe changes on the measurement probabilities of the estimation wires. Change the value of the variable done
to True
once you have finished testing out the code. Recall that
where we expect to observe the eigenphases
To interact with codercises, please switch to a larger screen size.
Learning Objectives: