2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
# Python Inputs
|
|
|
|
, h5py
|
|
|
|
, numpy
|
|
|
|
, psutil
|
|
|
|
, qiskit-terra
|
2023-05-24 13:37:59 +00:00
|
|
|
, rustworkx
|
2021-12-06 16:07:01 +00:00
|
|
|
, 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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.6.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-04-27 09:35:20 +00:00
|
|
|
owner = "Qiskit";
|
2021-12-06 16:07:01 +00:00
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-X/4jA/e2nmmaVEiCgd/4KJc/sAdcYDkyKzvyVztovXM=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
h5py
|
|
|
|
numpy
|
|
|
|
psutil
|
|
|
|
qiskit-terra
|
2023-05-24 13:37:59 +00:00
|
|
|
rustworkx
|
2021-12-06 16:07:01 +00:00
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
] ++ lib.optional withPyscf pyscf;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
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-04-27 09:35:20 +00:00
|
|
|
"test_two_qubit_reduction" # failure cause unclear
|
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";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
fromSource
|
|
|
|
binaryNativeCode # drivers/gaussiand/gauopen/*.so
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|