0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

python312Packages.stim: fix build

This commit is contained in:
Gaetan Lepage 2025-02-22 14:02:26 +01:00
parent ca7d0da1ef
commit a49631e4f6

View file

@ -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";