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 IfStmt to OpenQASM2 generation #481

Merged
merged 6 commits into from
Aug 20, 2021

Conversation

1tnguyen
Copy link
Member

Thien Nguyen added 6 commits August 16, 2021 16:15
XACCToStaqOpenQASM visitor to handle IfStmt (currently empty impl)

Signed-off-by: Thien Nguyen <[email protected]>
Creg can be larger than qreg (e.g., IQPE) and need to handle explicit Measure assignment.

Tested by: validating with Honeywell APIVAL

Signed-off-by: Thien Nguyen <[email protected]>
Signed-off-by: Thien Nguyen <[email protected]>
The procedure was not properly taking into account non-IBM gateset, i.e., 2-q gates may not be CNOT.

Signed-off-by: Thien Nguyen <[email protected]>
Testing non-conventional gate set.

Signed-off-by: Thien Nguyen <[email protected]>
Note: Aer can simulate conditional (bfunc) in the QObj and XACC translate IfStmt to bfunc appropriately.
Signed-off-by: Thien Nguyen <[email protected]>
@gitpod-io
Copy link

gitpod-io bot commented Aug 20, 2021

@amccaskey amccaskey merged commit 50bee5d into eclipse:master Aug 20, 2021
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.

2 participants