python3Packages.qiskit-ignis: 0.2.0 -> 0.3.0
This commit is contained in:
parent
aec8e04689
commit
88d49347f4
@ -5,42 +5,37 @@
|
|||||||
, fetchpatch
|
, fetchpatch
|
||||||
, numpy
|
, numpy
|
||||||
, qiskit-terra
|
, qiskit-terra
|
||||||
|
, scikitlearn
|
||||||
, scipy
|
, scipy
|
||||||
# Check Inputs
|
# Check Inputs
|
||||||
|
, ddt
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, qiskit-aer
|
, qiskit-aer
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "qiskit-ignis";
|
pname = "qiskit-ignis";
|
||||||
version = "0.2.0";
|
version = "0.3.0";
|
||||||
|
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
# Pypi's tarball doesn't contain tests
|
# Pypi's tarball doesn't contain tests
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Qiskit";
|
owner = "Qiskit";
|
||||||
repo = pname;
|
repo = "qiskit-ignis";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "08a60xk5dq5wmqc23r4hr2v2nsf9hs0ybz832vbnd6d80dl6izyc";
|
sha256 = "16h04n9hxw669nq2ii16l6h75x8afisvp3j062n4c62kcqci0x4x";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
# Fixed qiskit-ignis PR #385, figured this is easier than fetchpatch
|
||||||
# Update tests for compatibility with qiskit-aer 0.4 (#342). Remove in version > 0.2.0
|
postPatch = ''
|
||||||
(fetchpatch {
|
substituteInPlace qiskit/ignis/logging/ignis_logging.py --replace "self.configure_logger" "self._configure_logger"
|
||||||
url = "https://github.com/Qiskit/qiskit-ignis/commit/d78c494579f370058e68e360f10149db81b52477.patch";
|
'';
|
||||||
sha256 = "0ygkllf95c0jfvjg7gn399a5fd0wshsjpcn279kj7855m8j306h6";
|
|
||||||
})
|
|
||||||
# Fix statevector test over-eager validation (PR #333)
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/Qiskit/qiskit-ignis/commit/7cc8eb2e852b383ea429233fa43d3728931f1707.patch";
|
|
||||||
sha256 = "0mdygykilg4qivdaa731z3y56l3ax4jp1sil9npqv0gn4p03c9g5";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
qiskit-terra
|
qiskit-terra
|
||||||
|
scikitlearn
|
||||||
scipy
|
scipy
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -49,13 +44,18 @@ buildPythonPackage rec {
|
|||||||
dontUseSetuptoolsCheck = true;
|
dontUseSetuptoolsCheck = true;
|
||||||
preCheck = ''export HOME=$TMPDIR'';
|
preCheck = ''export HOME=$TMPDIR'';
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
ddt
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
qiskit-aer
|
qiskit-aer
|
||||||
];
|
];
|
||||||
|
# Test is in test/verification/test_entanglemet.py. test fails due to out-of-date calls & bad logic with this file since qiskit-ignis#328
|
||||||
|
# see qiskit-ignis#386 for all issues. Should be able to re-enable in future.
|
||||||
|
disabledTests = [ "TestEntanglement" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Qiskit tools for quantum hardware verification, noise characterization, and error correction";
|
description = "Qiskit tools for quantum hardware verification, noise characterization, and error correction";
|
||||||
homepage = "https://github.com/QISKit/qiskit-ignis";
|
homepage = "https://qiskit.org/ignis";
|
||||||
|
downloadPage = "https://github.com/QISKit/qiskit-ignis/releases";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ drewrisinger ];
|
maintainers = with maintainers; [ drewrisinger ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user