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
Support for circuit.draw(initial_state=False) #4068
Conversation
Thanks for quickly doing this. Can you call it |
It also applies to classical bits. Does the word "state" proper there? |
yeah i think so. but I would not call |
…value_text_drawer
done! |
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 haven't reviewed the code yet, just left some inline comments about the release notes so far. The indention or line length might be off (it's very hard to retain whitespace in the github ui), but that can easily be fixed
releasenotes/notes/initial_state_draw_parameter-f360ac4e998ee944.yaml
Outdated
Show resolved
Hide resolved
releasenotes/notes/initial_state_draw_parameter-f360ac4e998ee944.yaml
Outdated
Show resolved
Hide resolved
releasenotes/notes/initial_state_draw_parameter-f360ac4e998ee944.yaml
Outdated
Show resolved
Hide resolved
…44.yaml Co-Authored-By: Matthew Treinish <mtreinish@kortar.org>
…44.yaml Co-Authored-By: Matthew Treinish <mtreinish@kortar.org>
…44.yaml Co-Authored-By: Matthew Treinish <mtreinish@kortar.org>
* internal option * external API * testing * lint * clean * seed in the transpiler * simpler test * latex support * maxdiff * docstring * doc * wire * ket is special * reno * initial_state * more refactor * reno lint * Update releasenotes/notes/initial_state_draw_parameter-f360ac4e998ee944.yaml Co-Authored-By: Matthew Treinish <mtreinish@kortar.org> * Update releasenotes/notes/initial_state_draw_parameter-f360ac4e998ee944.yaml Co-Authored-By: Matthew Treinish <mtreinish@kortar.org> * Update releasenotes/notes/initial_state_draw_parameter-f360ac4e998ee944.yaml Co-Authored-By: Matthew Treinish <mtreinish@kortar.org> * release note * release note section * examples with text drawer * import * maybe with an extra space Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This PR add support for the parameter
initial_value
in the drawers.Because the default is
False
, this PR changes the previous behavior (initial values were shown before).This is a draft because the following drawers are pending: