-
Notifications
You must be signed in to change notification settings - Fork 431
Expand file tree
/
Copy pathpyproject.toml
More file actions
224 lines (200 loc) · 5.91 KB
/
Copy pathpyproject.toml
File metadata and controls
224 lines (200 loc) · 5.91 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Note: there are three types of dependencies listed in this file:
#
# [build-system].requires: packages needed by the build backend. Not stored in
# package metadata.
#
# [project].dependencies: core runtime packages (install_requires). Stored in
# package metadata and installed with `pip install openfermion`.
#
# [dependency-groups].dev: development tools for tests, linters, and packaging.
# Install with `uv sync --group dev` or `pip install --group dev` (PEP 735).
# Locked CI environments are still generated under dev_tools/requirements/envs/
# via dev_tools/requirements/create-env-files.sh.
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=78.1.1", "wheel"]
[project]
name = "openfermion"
description = "The electronic structure package for quantum computers."
readme = {file = "README.md", content-type = "text/markdown"}
license = "Apache-2.0"
authors = [
{name = "The OpenFermion Developers", email = "openfermion-dev@googlegroups.com"},
]
maintainers = [
{name = "Google Quantum AI open-source maintainers", email = "quantum-oss-maintainers@google.com"},
]
requires-python = ">=3.10.0"
dynamic = ["version", "dependencies", "optional-dependencies"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Quantum Computing",
]
keywords = [
"algorithms",
"api",
"application programming interface",
"chemistry",
"cirq",
"electronic structure",
"fermion",
"fermionic systems",
"google quantum",
"google",
"hamiltonians",
"high performance",
"nisq",
"noisy intermediate-scale quantum",
"python",
"quantum algorithms",
"quantum chemistry",
"quantum circuit simulator",
"quantum circuit",
"quantum computer simulator",
"quantum computing",
"quantum development kit",
"quantum programming language",
"quantum programming",
"quantum simulation",
"quantum",
"qubit hamiltonians",
"qubit",
"sdk",
"simulation",
"software development kit",
]
[project.urls]
Homepage = "https://quantumai.google/openfermion"
Documentation = "https://quantumai.google/openfermion"
Source = "https://github.com/quantumlib/OpenFermion"
[dependency-groups]
# Development dependencies. Keep in sync with dev_tools/requirements/deps/*.txt.
dev = [
# Formatting and linting.
"black",
"mypy",
"pandas-stubs",
"pylint~=3.3",
"types-networkx",
"types-requests",
"types-setuptools",
# Testing.
"nbformat",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-randomly",
"pytest-retry",
"pytest-xdist",
"tensorflow-docs",
# Resource-estimate runtime deps (see resource_estimates_runtime.txt).
"ase",
"jax",
"jaxlib",
"pyscf",
# Packaging and requirements regeneration.
"build",
"setuptools",
"shellcheck-py~=0.11.0",
"twine",
"uv",
"virtualenv",
"wheel",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-dir]
"" = "src"
[tool.setuptools.package-data]
openfermion = [
"resource_estimates/integrals/*.h5",
"testing/*.npy",
"testing/*.hdf5",
"testing/*.data",
"testing/*.txt",
]
[tool.setuptools.dynamic]
version = {attr = "openfermion._version.__version__"}
dependencies = {file = ["dev_tools/requirements/deps/runtime.txt"]}
[tool.setuptools.dynamic.optional-dependencies]
resources = {file = ["dev_tools/requirements/deps/resource_estimates_runtime.txt"]}
[tool.black]
line-length = 100
target-version = ['py310', 'py311', 'py312', 'py313']
skip-string-normalization = true
skip-magic-trailing-comma = true
[tool.coverage.run]
# Speed up pytest-cov on Python 3.12+ by enabling sys.monitoring if possible.
core = "sysmon"
disable_warnings = ["no-sysmon"]
[tool.pytest.ini_options]
markers = [
"""slow: marks tests as slow (deselect with '-m "not slow"')""",
]
filterwarnings = [
"ignore:Skipped assert_qasm_is_consistent_with_unitary because qiskit.*:UserWarning",
]
[tool.mypy]
implicit_optional = true
# TODO: this is temporary for 1.7.0 release. Remove this & fix the errors.
ignore_errors = true
[[tool.mypy.overrides]]
module = "__main__"
follow_imports = "silent"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"_pytest.*",
"absl",
"apiclient.*",
"h5py",
"numpy.*",
"pubchempy",
"pybtas",
"pyscf.*",
"pytest.*",
"scipy.*",
"tensorflow_docs",
]
follow_imports = "silent"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "sympy.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tensorflow_docs.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "deprecation"
follow_untyped_imports = true
[tool.uv.pip]
universal = true
generate-hashes = true
custom-compile-command = "dev_tools/requirements/create-env-files.sh"