From 1443042117213f2c4a4b98203e6b98379101d588 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Mon, 7 Dec 2020 17:24:18 -0500 Subject: [PATCH] Add missing networkx dependency The topological_code fitters module relies on networkx and has had a hard dependency on it since it was first introduced in #211. However, it was never added to the requirements list. This was never caught because historically qiskit-terra (which is in the requirements list) has required networkx too so installing qiskit-terra would install networkx. But, in Qiskit/qiskit-terra#5183 the dependency on networkx was removed from terra. This commit corrects the issue so that we're properly listing networkx as an ignis requirement moving forward. Longer term we should migrate the topological codes fitter to use retworkx for better performance and consistency with the rest of Qiskit. However, before we can do that Qiskit/retworkx#216 must be fixed first. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index a33a92c77..9d33f0a2a 100644 --- a/setup.py +++ b/setup.py @@ -21,6 +21,7 @@ requirements = [ "numpy>=1.13", "qiskit-terra>=0.13.0", + "networkx>=2.2", "scipy>=0.19,!=0.19.1", "setuptools>=40.1.0", "scikit-learn>=0.17",