Commit a49631e4 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.stim: fix build

parent ca7d0da1
Loading
Loading
Loading
Loading
+16 −9
Original line number Diff line number Diff line
{
  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";