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

Fixes circuit_to_instruction() method for circuits containing single bit conditions #6537

Merged
merged 12 commits into from
Jul 15, 2021

Conversation

TharrmashasthaPV
Copy link
Contributor

Summary

Fixes a part of #6475.

Details and comments

This PR fixes the circuit_to_instruction() method for circuits involving gates which are conditioned on single classical bits.
Also added a test to check if the mappings of conditions based on circuit registers to conditions based on instruction registers are done right.

@TharrmashasthaPV TharrmashasthaPV force-pushed the issue6475_circ_to_inst branch from 42a183a to 9b8eda6 Compare June 28, 2021 17:59
@javabster javabster added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Jul 15, 2021
Copy link
Contributor

@javabster javabster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, thanks @TharrmashasthaPV 🚀

Copy link
Member

@1ucian0 1ucian0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The list in #6475 is getting shorter!

@mergify mergify bot merged commit d9c0fdb into Qiskit:main Jul 15, 2021
@kdk kdk added this to the 0.19 milestone Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants