Yuchen Yuan commited on
Commit
a33a7c5
·
1 Parent(s): 2723ff2

Add matplotlib + networkx to backend requirements

Browse files

Qshot's recommend_shots_v4.py imports matplotlib (diagnostic plotting)
and show_dag.py imports networkx (QASM → DAG conversion). These were
present in my local sandbox from earlier installs, so the integration
test passed there, but the HF Space fresh Python image is missing both
and the node returned ModuleNotFoundError at run time.

Files changed (1) hide show
  1. backend/requirements.txt +5 -0
backend/requirements.txt CHANGED
@@ -32,6 +32,11 @@ scikit-learn>=1.5,<1.8
32
  # pylatexenc — lets Qiskit's MatplotlibDrawer render circuit diagrams
33
  # with proper LaTeX gate labels; without it the Qshot card's
34
  # "Circuit Diagram" section falls back to a plain-text rendering.
 
 
 
35
  hdbscan>=0.8.41,<0.9
36
  torch-geometric>=2.6,<2.8
37
  pylatexenc>=2.10
 
 
 
32
  # pylatexenc — lets Qiskit's MatplotlibDrawer render circuit diagrams
33
  # with proper LaTeX gate labels; without it the Qshot card's
34
  # "Circuit Diagram" section falls back to a plain-text rendering.
35
+ # matplotlib / networkx — Qshot's top-level imports. Used by the
36
+ # diagnostic plotter (recommend_shots_v4.plot_recommendation) and by
37
+ # the QASM→DAG graph conversion (show_dag.py).
38
  hdbscan>=0.8.41,<0.9
39
  torch-geometric>=2.6,<2.8
40
  pylatexenc>=2.10
41
+ matplotlib>=3.8,<4
42
+ networkx>=3.1,<4