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

Support declaring single hardware qubits #177

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

jlapeyre
Copy link
Collaborator

@jlapeyre jlapeyre commented Mar 1, 2024

Statements like qubit $1; are supported.

This commit also undoes the previous commit (last commit before tagging 0.3.0) that improved the error handling for attemted declaration of hardware qubits.

API CHANGE: new variant in asg::Stmt
The variant is Stmt::DeclareHardwareQubit(DeclareHardwareQubit)

Declaring hardware qubits is not in the OQ3 spec. But all of our current users encounter (or write) qasm code with HW qubit declarations.

The struct DeclareHardwareQubit has method name to retrieve an instance of asg::HardwareQubit. Note that asg::HardwareQubit is not new in this commit.

Statements like `qubit $1;` are supported.

This commit also undoes the previous commit (last commit before tagging 0.3.0) that
improved the error handling for attemted declaration of hardware qubits.

API CHANGE: new variant in asg::Stmt
The variant is  `Stmt::DeclareHardwareQubit(DeclareHardwareQubit)`

The struct `DeclareHardwareQubit` has method `name` to retrieve an instance of
`asg::HardwareQubit`. Note that `asg::HardwareQubit` is not new in this
commit.
@jlapeyre jlapeyre merged commit b3fbaed into Qiskit:main Mar 1, 2024
7 checks passed
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.

None yet

1 participant