Skip to content

Matplotlib drawer update to show 2 qubit params#4566

Closed
sar49 wants to merge 30 commits intoQiskit:masterfrom
sar49:fixissue4563branch
Closed

Matplotlib drawer update to show 2 qubit params#4566
sar49 wants to merge 30 commits intoQiskit:masterfrom
sar49:fixissue4563branch

Conversation

@sar49
Copy link
Contributor

@sar49 sar49 commented Jun 11, 2020

Summary

Fixes #4563

Details and comments

The two qubit gate that was referenced did not have a subtext parameter which I just added to the function call when the gate was drawn. The positioning of the subtext was by default a bit too high so I lowered it down. By default the y position for the main text and subtext was .5 * height and .3 * height respectively which I brought down to .4 * height and .3 * height. Also, I added gates rxx, rzx, and ryy to qcstyle so that they could be displayed with first letter capitalized and the rest subscripted.

@sar49 sar49 requested review from a team, maddy-tod and nonhermitian as code owners June 11, 2020 18:55
@sar49 sar49 changed the title Fixissue4563branch Matplotlib drawer update to show 2 qubit params Jun 11, 2020
@1ucian0
Copy link
Member

1ucian0 commented Jun 27, 2020

Considering adding a "test" following this style #4544

@sar49
Copy link
Contributor Author

sar49 commented Jun 29, 2020

Yes, I think all of the circuit tests that are done by the tester should be transferred over to the binder test like in #4544. It is much more accurate and easier to see small scaling errors and whatnot

@1ucian0
Copy link
Member

1ucian0 commented Sep 9, 2020

The issue fixed by this PR is already solved. If you consider this PR is also covering other aspects that are not in current master, please reopen!

@1ucian0 1ucian0 closed this Sep 9, 2020
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.

Two qubit gates don't show the parameter when using matplotlib.

2 participants