diff --git a/pkgs/development/python-modules/stim/default.nix b/pkgs/development/python-modules/stim/default.nix index 01357b047645..7b8131f8cc7f 100644 --- a/pkgs/development/python-modules/stim/default.nix +++ b/pkgs/development/python-modules/stim/default.nix @@ -1,19 +1,23 @@ { lib, buildPythonPackage, - cirq-core, fetchFromGitHub, + + # build-system + pybind11, + setuptools, + + # dependencies + numpy, + + # tests + cirq-core, matplotlib, networkx, - numpy, pandas, - pybind11, pytest-xdist, pytestCheckHook, - pythonOlder, scipy, - setuptools, - wheel, }: buildPythonPackage rec { @@ -21,8 +25,6 @@ buildPythonPackage rec { version = "1.14.0"; pyproject = true; - disabled = pythonOlder "3.6"; - src = fetchFromGitHub { owner = "quantumlib"; repo = "Stim"; @@ -50,7 +52,6 @@ buildPythonPackage rec { build-system = [ pybind11 setuptools - wheel ]; dependencies = [ numpy ]; @@ -75,6 +76,12 @@ buildPythonPackage rec { "glue/cirq" ]; + disabledTests = [ + # AssertionError: Sample rate 1.0 is over 5 standard deviations away from 1.0. + "test_frame_simulator_sampling_noisy_gates_agrees_with_cirq_data" + "test_tableau_simulator_sampling_noisy_gates_agrees_with_cirq_data" + ]; + meta = { description = "Tool for high performance simulation and analysis of quantum stabilizer circuits, especially quantum error correction (QEC) circuits"; mainProgram = "stim";