Skip to content
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

Bug in circuit library visualization function #13632

Open
ElePT opened this issue Jan 8, 2025 · 1 comment
Open

Bug in circuit library visualization function #13632

ElePT opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ElePT
Copy link
Contributor

ElePT commented Jan 8, 2025

Environment

  • Qiskit version: 2.0.0
  • Python version:
  • Operating system:

What is happening?

The circuit library docs show in many cases illegible circuits that come from _generate_circuit_library_visualization. For example:

Image
Image

How can we reproduce the issue?

        from qiskit.circuit.library import GRX
        from qiskit.visualization.library import _generate_circuit_library_visualization
        import numpy as np
        circuit = GRX(num_qubits=3, theta=np.pi/4)
        _generate_circuit_library_visualization(circuit)

Note that this is run inside a sphinx ..plot directive, not sure if the issue is limited to the docs rendering or also happens when run independently.

What should happen?

Circuit library visualizations should be readable.

Any suggestions?

No response

@ElePT ElePT added the bug Something isn't working label Jan 8, 2025
@ShellyGarion
Copy link
Member

I think this is a part of this issue: #13558
Perhaps we can close this issue and add this case as a comment there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants