-
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
Ket convention statevector drawer ignores max_size #7516
Comments
Happy to look at this properly, can you assign me please? |
Hi this issue has been causing me a real headache recently. Has there been any progress on it? |
I think the solution will be very slightly different to what Frank originally suggested, because the options to I'll just ping @frankharkins to check if you've got time to work on it? If not, I'll return it to the pool of good first issues for somebody else to take a look at. |
Oh and in case it isn't the same bug in the code, the same issue occurs with .draw(output="latex_source") |
Sorry I completely forgot about this, I'll have a look this week |
Has there been any luck at all? |
Yes, sorry- I've fixed and am just writing a test now. |
* Fix #7516 * Remove unused import * Improve splitting of string literals Co-authored-by: Jake Lishman <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Environment
What is happening?
Currently,
Statevector.draw('latex')
ignores themax_size
parameter.How can we reproduce the issue?
We get 12 terms, but I expect to get 3.
What should happen?
The drawer should change its behaviour according to the
max_size
parameter.Any suggestions?
I think adding
**args
to this line might do it.https://github.com/Qiskit/qiskit-terra/blob/5ea6e9557655b144228c29d7099375f5d2c91120/qiskit/visualization/state_visualization.py#L1183
The text was updated successfully, but these errors were encountered: