2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
# Python Inputs
|
|
|
|
, h5py
|
|
|
|
, numpy
|
|
|
|
, psutil
|
|
|
|
, qiskit-terra
|
|
|
|
, retworkx
|
|
|
|
, scikit-learn
|
|
|
|
, scipy
|
|
|
|
, withPyscf ? false
|
|
|
|
, pyscf
|
|
|
|
# Check Inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
, ddt
|
|
|
|
, pylatexenc
|
2022-02-20 05:27:41 +00:00
|
|
|
, qiskit-aer
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qiskit-nature";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.3.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qiskit";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-EkYppEOQGmRIxKC4ArXZb0b+p1gPGnP6AU8LbEbOpPo=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
h5py
|
|
|
|
numpy
|
|
|
|
psutil
|
|
|
|
qiskit-terra
|
|
|
|
retworkx
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
] ++ lib.optional withPyscf pyscf;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
ddt
|
|
|
|
pylatexenc
|
2022-02-20 05:27:41 +00:00
|
|
|
qiskit-aer
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "qiskit_nature" ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--durations=10"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2022-02-20 05:27:41 +00:00
|
|
|
"test_two_qubit_reduction" # unsure of failure reason. Might be related to recent cvxpy update?
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Software for developing quantum computing programs";
|
|
|
|
homepage = "https://qiskit.org";
|
2022-02-20 05:27:41 +00:00
|
|
|
downloadPage = "https://github.com/QISKit/qiskit-nature/releases";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://qiskit.org/documentation/release_notes.html";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|