Skip to content

Grover behaves differently for qc and for a qint register #54

@ItaiTzur76

Description

@ItaiTzur76

.Grover() behaves differently when invoked on qc and on a register created by a qint.new call.

Reproduce:

  1. Open http://oreilly-qc.github.io?p=6-2 and click on the Run Program button. Observe the Program circuit and Circle notation sections.
  2. Replace the reg.Grover() call with qc.Grover() in line 26.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions