Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grover assumes type GroverOperator #76

Open
woodsp-ibm opened this issue Sep 8, 2023 · 0 comments
Open

Grover assumes type GroverOperator #76

woodsp-ibm opened this issue Sep 8, 2023 · 0 comments

Comments

@woodsp-ibm
Copy link
Member

In Grover here

max_power = np.ceil(
2 ** (len(amplification_problem.grover_operator.reflection_qubits) / 2)
)
it simply accesses reflection_qubits on what was passed to the AmplificationProblem as a grover_operator
grover_operator: QuantumCircuit | None = None,
but this is of type QuantumCircuit which does not have that field - only the GroverOperator subclass does. This should be more dynamically taken care of such that if a QuantumCircuit is passed, without that field, that it is handled accordingly.

@woodsp-ibm woodsp-ibm mentioned this issue Sep 8, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant