qiskit/test/python/visualization
Matthew Treinish fe3e00ed7c
Remove sympy as a hard dependency (#14396)
* Remove sympy as a hard dependency

With the move to symbolic expression class added in #13278 the
dependency on sympy is no longer as core to the Qiskit package as it was
in the past. The only pieces that are still reliant on it are QPY
deserialization of payloads older than QPY v13 and some small
visualization utilities where sympy is used to generate the output.
Since this functionality is not core to the library and only used in
some less common use cases we no longer need to install sympy for every
installation of Qiskit. In preparation for this Qiskit 2.0 laid the
groundwork by marking all uses of sympy in Qiskit as being fallible if
sympy was not installed and documented that sympy is not guaranteed to
be installed with Qiskit anymore.

This commit implements this change and moves sympy to be an optional
dependency only used by some small components.

* Add sympy to backwards compat qpy jobs

* Update release notes

* Update releasenotes/notes/no-sympy-19687d5ca814042c.yaml

Co-authored-by: Julien Gacon <gaconju@gmail.com>

---------

Co-authored-by: Julien Gacon <gaconju@gmail.com>
2025-06-02 15:52:26 +00:00
..
references Adapt visualization tests to new pydot version (#14293) 2025-05-05 14:45:10 +00:00
timeline Update transpiler pipeline to (only) use target internally (#12850) 2025-03-06 16:25:55 +00:00
__init__.py Remove coding: utf-8 per PEP 3120 (#4914) 2020-08-12 08:29:16 -04:00
test_circuit_drawer.py Remove condition/c_if, duration, and unit from instructions (#13506) 2025-02-24 15:33:45 +00:00
test_circuit_latex.py The parameter ``idle_wires`` default flipped to False in all circuit drawers (#13865) 2025-03-06 11:12:18 +00:00
test_circuit_text_drawer.py Visualize boxes with disjoint vertical spans in parallel (#14386) 2025-05-16 21:35:12 +00:00
test_dag_drawer.py Change style of DAG generated in dag_drawer() (#13253) 2025-05-29 20:07:34 +00:00
test_gate_map.py Remove fake backends based on `BackendV1` and related tools (#13805) 2025-02-28 12:46:24 +00:00
test_pass_manager_drawer.py Fix pass-manager drawing tests for pydot 3.0 (#12775) 2024-07-16 13:24:21 +00:00
test_plot_histogram.py Fix the possibly-used-before-assignment in pylint (#12542) 2024-06-13 10:47:34 +00:00
test_state_latex_drawer.py Remove sympy as a hard dependency (#14396) 2025-06-02 15:52:26 +00:00
test_state_plot_tools.py Remove `qiskit.test` (#10998) 2024-01-31 14:11:41 +00:00
test_utils.py Remove sympy as a hard dependency (#14396) 2025-06-02 15:52:26 +00:00
visualization.py Remove `qiskit.test` (#10998) 2024-01-31 14:11:41 +00:00