-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix IQX color schemes #10941
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 IQX color schemes #10941
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 6380973092
💛 - Coveralls |
"#BAE6FF", | ||
"#000000" | ||
], | ||
"cp": [ | ||
"#BAE6FF", | ||
"#000000" | ||
], | ||
"mcphase": [ | ||
"#BAE6FF", | ||
"#000000" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remind us what the rules are for assigning colors to gates? This way it would be easier to understand the changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized I can't add a comment to a JSON file, but it's sort of documented here:
"### IQX Colors": "IQX Colors", |
The IQX color scheme is coloring gates by how much of a superposition they can create on a state:
- classical gates (i.e. exist on a CPU): dark blue
- diagonal (or phase) gates: light blue
- hadamard: orange -- this is special as it creates equal superposition (IMO also SX should be orange then)
- rest: dark red
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! I think that the change makes sense.
* fix diagonal gate colors * fix iqx-dark and iswap * add reno * update reference images
Summary
Fix
iqx
andiqx-dark
color schemes for the matplotlib drawer.Details and comments
Some diagonal gates (CPhase, RZ, RZZ) and the iSwap gate were not correctly categorized. E.g. iSwap was shown as blue (diagonal gate) but it's not diagonal.
Todo: Update drawer reference files, but I'm failing to produce the correct ones locally, so I'm using the created images of the CI