.Grover() behaves differently when invoked on qc and on a register created by a qint.new call.
Reproduce:
- Open http://oreilly-qc.github.io?p=6-2 and click on the Run Program button. Observe the Program circuit and Circle notation sections.
- Replace the
reg.Grover() call with qc.Grover() in line 26.
- Click on the Run Program button again.
Expected behavior:
The output in the Program circuit and Circle notation sections is the same as before, since reg was initialized in line 13 to contain all qubits.
Actual behavior:
The output in the Program circuit and Circle notation sections is different.