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

Fixed error in qc.depth() when using on circuits with single bit classical conditions #6476

Merged
merged 4 commits into from
May 31, 2021

Conversation

TharrmashasthaPV
Copy link
Contributor

Summary

Fixes qc.depth() part of #6475 .

Details and comments

Introducing single bit classical conditioning on circuits in #6018 breaks qc.depth() function when used with circuits that contain gates that are conditioned by single classical bits. This PR attempts to resolve that. Tests have also been added.

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!

@1ucian0 1ucian0 added automerge Changelog: None Do not include in changelog labels May 28, 2021
@mergify mergify bot merged commit faf0628 into Qiskit:main May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants