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

Fix for Matplotlib barriers not plotting correctly #1718

Merged
merged 10 commits into from
Jan 29, 2019

Conversation

maddy-tod
Copy link
Contributor

Summary

Fixes #1703

Barriers weren't plotting across all affected qubits. This was because only the first affected qubit was being added to the barrier. Fixed by adding all qubits given by the operation to the barrier.

@maddy-tod maddy-tod changed the title Matplot barriers Fix for Matplotlib barriers not plotting correctly Jan 24, 2019
CHANGELOG.rst Outdated Show resolved Hide resolved
@ajavadia
Copy link
Member

Thanks @maddy-tod! This does fix the issue. After you fix the linter error, I'll merge.

@1ucian0 1ucian0 merged commit 3f099f1 into Qiskit:master Jan 29, 2019
@maddy-tod maddy-tod deleted the matplot-barriers branch February 8, 2019 11:44
lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this pull request Jul 30, 2019
* Barriers plot over all affected qubits

* Tidying up

* CHANGELOG update

* CHANGELOG update

* Update CHANGELOG.rst

Co-Authored-By: maddy-tod <[email protected]>

* fix linter error
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 drawing barriers in matplotlib circuit drawer
3 participants