diff options
Diffstat (limited to 'pkgs/development/python-modules/qiskit-terra/default.nix')
-rw-r--r-- | pkgs/development/python-modules/qiskit-terra/default.nix | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/qiskit-terra/default.nix b/pkgs/development/python-modules/qiskit-terra/default.nix index da31f86500fb6..1a5aa516c52d0 100644 --- a/pkgs/development/python-modules/qiskit-terra/default.nix +++ b/pkgs/development/python-modules/qiskit-terra/default.nix @@ -1,13 +1,10 @@ { lib -, stdenv , pythonOlder , buildPythonPackage , fetchFromGitHub # Python requirements , cython , dill -, fastjsonschema -, jsonschema , numpy , networkx , ply @@ -17,6 +14,7 @@ , retworkx , scipy , scikit-quant ? null +, stevedore , symengine , sympy , tweedledum @@ -56,23 +54,21 @@ in buildPythonPackage rec { pname = "qiskit-terra"; - version = "0.18.3"; + version = "0.19.2"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { - owner = "Qiskit"; + owner = "qiskit"; repo = pname; rev = version; - sha256 = "sha256-w/EnkdlC1hvmLqm4I8ajEYADxqMYGdHKrySLcb/yWGs="; + sha256 = "sha256-P2QTdt1H9I5T/ONNoo7XEVnoHweOdq3p2NH3l3/yAn4="; }; nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ dill - fastjsonschema - jsonschema numpy networkx ply @@ -82,6 +78,7 @@ buildPythonPackage rec { retworkx scipy scikit-quant + stevedore symengine sympy tweedledum @@ -112,6 +109,9 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ "--durations=10" ]; disabledTests = [ + "TestUnitarySynthesisPlugin" # uses unittest mocks for transpiler.run(), seems incompatible somehow w/ pytest infrastructure + "test_copy" # assertNotIn doesn't seem to work as expected w/ pytest vs unittest + # Flaky tests "test_pulse_limits" # Fails on GitHub Actions, probably due to minor floating point arithmetic error. "test_cx_equivalence" # Fails due to flaky test @@ -154,6 +154,17 @@ buildPythonPackage rec { "test_sample_counts_memory_superposition" "test_piecewise_polynomial_function" "test_vqe_qasm" + "test_piecewise_chebyshev_mutability" + "test_bit_conditional_no_cregbundle" + "test_gradient_wrapper2" + "test_two_qubit_weyl_decomposition_abmb" + "test_two_qubit_weyl_decomposition_abb" + "test_two_qubit_weyl_decomposition_aac" + "test_aqc" + "test_gradient" + "test_piecewise_polynomial_rotations_mutability" + "test_confidence_intervals_1" + "test_trotter_from_bound" ]; # Moves tests to $PACKAGEDIR/test. They can't be run from /build because of finding @@ -163,7 +174,6 @@ buildPythonPackage rec { echo "Moving Qiskit test files to package directory" cp -r $TMP/$sourceRoot/test $PACKAGEDIR cp -r $TMP/$sourceRoot/examples $PACKAGEDIR - cp -r $TMP/$sourceRoot/qiskit/schemas/examples $PACKAGEDIR/qiskit/schemas/ # run pytest from Nix's $out path pushd $PACKAGEDIR |