In a combination lock, we can represent the oracle as a unitary operator:
where
The simplest way to do this is to create the
and then simply change the entry corresponding to the solution from
For this codercise, write a function that returns the oracle in matrix form for a given secret combination.
To interact with codercises, please switch to a larger screen size.
Learning Objectives: