Let's implement the same Hadamard-oracle-Hadamard circuit, but now for multiple solutions:
Since
Implement the circuit above for a set of
solutions combos
, and return probabilities. As before,
you are given multisol_oracle_matrix(combos)
, which returns the
associated oracle in matrix form.
Hitting submit will plot the probability of observing
To interact with codercises, please switch to a larger screen size.
Learning Objectives: