-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add option in user config file to control reverse_bits
in circuit_drawer
#9150
Comments
I would like to work on this issue if you think there is value in adding this option. |
If you've got a use-case for it, this definitely seems good to accept! I'll assign the issue to you, thanks, but no pressure. |
Hi @jakelishman. Thank you so much. I already have a working version of this, but I have a question before submitting a PR. While working on this, I realized that very recently, a new option was added to generalize how qubits are ordered when displayed by the drawer (using the Reading through the issue where this was addressed, I noticed that @1ucian0 proposed to eventually eliminate the This wouldn't be too difficult to implement, but it is definitely much larger in scope than what I am proposing because removing |
We're fine to move ahead just adding a |
Hi @jakelishman. I am sorry, this is my first time contributing to I did some searching, I see this problem is known: #8052 but I don't know what I need to do to resolve it. Thanks! |
For now, you can just delete the lines starting
In general, I've got an open PR #8967 to split up the actual development requirements from our additional optional things, which will help a fair amount here. |
I'm actually surprised there is still an issue with arm64 macOS. Looking at the binaries included in jaxlib there is an arm64 wheel available in the latest release for py3.8-py3.11 https://pypi.org/project/jaxlib/#files |
Hi @jakelishman thank you so much, that worked. I submitted PR #9186 that takes care of this, but I realized I have some issues with authorship of the first commits. I closed the PR because fixing it probably requires rewriting commit history, so I rather fix this by resubmitting the commits with the right user on a clean branch. |
Hi @jakelishman. Thank you for your help today. Here are a few questions related to the PR:
Thanks again! |
Some answers:
|
Thanks @jakelishman.
|
What should we add?
Currently, the user config file supports
circuit_drawer
display options such asoutput
("text"
, "mpl
", etc.). Including the ability to change thereverse_bits
option would allow users that prefer setting this option toTrue
to not have to explicitly set this parameter every time a circuit is drawn.The text was updated successfully, but these errors were encountered: