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

Give correct type to qubit register param in def #184

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

jlapeyre
Copy link
Collaborator

Previously the type of any quantum parameter in a def was Qubit. This commit gives a qubit register the correct type, that is a one-dimensional qubit array.

A test was in place that verified the wrong behavior. Now it verifies the correct behavior.

Unrelated changes made while debugging: Some default match arms were changed to be explicit.

Closes #183

Previously the type of any quantum parameter was `Qubit`. This
commit gives a qubit register the correct type, that is a one
dimensional qubit array.

A test was in place that verified the wrong behavior. Now it verifies
the correct behavior.

Unrelated changes made while debugging: Some default match arms
were changed to be explicit.
@jlapeyre jlapeyre merged commit 4694478 into Qiskit:main Mar 21, 2024
7 checks passed
@jlapeyre jlapeyre deleted the def-improve branch March 21, 2024 02:28
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

Successfully merging this pull request may close these issues.

Bug in interaction of scope and type check
1 participant