2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
# Python Inputs
|
|
|
|
, qiskit-aer
|
|
|
|
, qiskit-aqua
|
|
|
|
, qiskit-ibmq-provider
|
|
|
|
, qiskit-ignis
|
|
|
|
, qiskit-terra
|
|
|
|
# Check Inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qiskit";
|
|
|
|
# NOTE: This version denotes a specific set of subpackages. See https://qiskit.org/documentation/release_notes.html#version-history
|
2020-12-03 08:41:04 +00:00
|
|
|
version = "0.23.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-03 08:41:04 +00:00
|
|
|
owner = "qiskit";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "qiskit";
|
|
|
|
rev = version;
|
2020-12-03 08:41:04 +00:00
|
|
|
sha256 = "0x4cqx1wqqj7h5g3vdag694qjzsmvhpw25yrlcs70mh5ywdp28x1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
qiskit-aer
|
|
|
|
qiskit-aqua
|
|
|
|
qiskit-ibmq-provider
|
|
|
|
qiskit-ignis
|
|
|
|
qiskit-terra
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"qiskit"
|
|
|
|
"qiskit.aqua"
|
|
|
|
"qiskit.circuit"
|
|
|
|
"qiskit.ignis"
|
|
|
|
"qiskit.providers.aer"
|
2020-12-03 08:41:04 +00:00
|
|
|
"qiskit.providers.ibmq"
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Software for developing quantum computing programs";
|
|
|
|
homepage = "https://qiskit.org";
|
|
|
|
downloadPage = "https://github.com/QISKit/qiskit/releases";
|
2020-09-25 04:45:31 +00:00
|
|
|
changelog = "https://qiskit.org/documentation/release_notes.html";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger pandaman ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|