1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
cargo,
rustPlatform,
rustc,
libiconv,
dill,
matplotlib,
numpy,
pillow,
pydot,
pylatexenc,
python-constraint,
rustworkx,
scipy,
seaborn,
setuptools,
setuptools-rust,
stevedore,
symengine,
sympy,
typing-extensions,
z3-solver,
}:
buildPythonPackage rec {
pname = "qiskit";
version = "2.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Qiskit";
repo = "qiskit";
tag = version;
hash = "sha256-YGsBpNyM28fDG+mXs3hIA6K2kuE1getB8tTMLdHMa5k=";
};
nativeBuildInputs = [
cargo
rustc
rustPlatform.cargoSetupHook
];
build-system = [
setuptools
setuptools-rust
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src pname version;
hash = "sha256-Mpy5KkqSjlTtezZ2BQnai+PBG+8qLPmYj1AocdIhhvI=";
};
dependencies = [
dill
numpy
rustworkx
scipy
stevedore
typing-extensions
];
optional-dependencies = {
visualization = [
matplotlib
pillow
pydot
pylatexenc
seaborn
sympy
];
crosstalk-pass = [
z3-solver
];
csp-layout-pass = [
python-constraint
];
qpy-compat = [
symengine
sympy
];
};
pythonImportsCheck = [
"qiskit"
"qiskit.circuit"
"qiskit.providers.basic_provider"
];
meta = {
description = "Software for developing quantum computing programs";
longDescription = ''
Open-source SDK for working with quantum computers at the level of
extended quantum circuits, operators, and primitives.
'';
homepage = "https://www.ibm.com/quantum/qiskit";
downloadPage = "https://github.com/QISKit/qiskit/releases";
changelog = "https://docs.quantum.ibm.com/api/qiskit/release-notes";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|