Skip to content

Commit a49631e

Browse files
committed
python312Packages.stim: fix build
1 parent ca7d0da commit a49631e

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

pkgs/development/python-modules/stim/default.nix

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
{
22
lib,
33
buildPythonPackage,
4-
cirq-core,
54
fetchFromGitHub,
5+
6+
# build-system
7+
pybind11,
8+
setuptools,
9+
10+
# dependencies
11+
numpy,
12+
13+
# tests
14+
cirq-core,
615
matplotlib,
716
networkx,
8-
numpy,
917
pandas,
10-
pybind11,
1118
pytest-xdist,
1219
pytestCheckHook,
13-
pythonOlder,
1420
scipy,
15-
setuptools,
16-
wheel,
1721
}:
1822

1923
buildPythonPackage rec {
2024
pname = "stim";
2125
version = "1.14.0";
2226
pyproject = true;
2327

24-
disabled = pythonOlder "3.6";
25-
2628
src = fetchFromGitHub {
2729
owner = "quantumlib";
2830
repo = "Stim";
@@ -50,7 +52,6 @@ buildPythonPackage rec {
5052
build-system = [
5153
pybind11
5254
setuptools
53-
wheel
5455
];
5556

5657
dependencies = [ numpy ];
@@ -75,6 +76,12 @@ buildPythonPackage rec {
7576
"glue/cirq"
7677
];
7778

79+
disabledTests = [
80+
# AssertionError: Sample rate 1.0 is over 5 standard deviations away from 1.0.
81+
"test_frame_simulator_sampling_noisy_gates_agrees_with_cirq_data"
82+
"test_tableau_simulator_sampling_noisy_gates_agrees_with_cirq_data"
83+
];
84+
7885
meta = {
7986
description = "Tool for high performance simulation and analysis of quantum stabilizer circuits, especially quantum error correction (QEC) circuits";
8087
mainProgram = "stim";

0 commit comments

Comments
 (0)