In the Introduction to Quantum Algorithms module, we sped up the lock-breaking process by testing
states in pairs. This told us when the solution was present, but not
which state it was. Our goal now will be to try and figure out the
state
Complete the following code for returning the
amplitudes after applying the oracle to the uniform superposition. The oracle is accessible as
oracle_matrix(combo)
, where combo
is the secret combination. Amplitudes will be plotted for combo = [0, 0, 0, 1]
.
To interact with codercises, please switch to a larger screen size.
Learning Objectives: