-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy pathpyproject.toml
More file actions
171 lines (156 loc) · 5.85 KB
/
pyproject.toml
File metadata and controls
171 lines (156 loc) · 5.85 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
# Copyright 2025 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 altogether 3 types of dependencies listed in this file:
#
# [build-system].requires: the packages needed by the build backend to build
# the project from source. This list is not stored in the package metadata.
#
# [project].dependencies: core packages needed to be able to run qsimcirq.
# Equivalent to "install_requires" in setuptools' setup.py. The list is stored
# in the metadata of the package; when the project is installed by pip, this is
# the specification that is used to install its dependencies.
#
# [dependency-groups].dev: the development dependencies; i.e., what a
# developer needs in order to run unit tests, linters, and formatters. The
# "[dependency-groups]" section is a Python packaging feature introduced in
# 2025. This list is not stored in the metadata of the package. To install the
# development dependencies, use "pip install --group dev".
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"cmake~=3.28.1",
"pybind11[global]",
"setuptools-scm[toml]>=6.2",
"setuptools>=78.1.1",
"wheel",
]
[project]
name = "qsimcirq"
description = "High-performance quantum circuit simulator for C++ and Python."
authors = [
{ name = "The qsim/qsimh Developers", email = "qsim-qsimh-dev@googlegroups.com" }
]
maintainers = [
{ name = "Google Quantum AI", email = "quantum-oss-maintainers@google.com" }
]
readme = {file = "README.md", content-type = "text/markdown"}
license = "Apache-2.0"
requires-python = ">=3.10.0"
dynamic = ["version", "dependencies"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: GPU :: NVIDIA CUDA",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Quantum Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
keywords = [
"cirq",
"nisq",
"quantum algorithm development",
"quantum circuit simulator",
"quantum computing",
"quantum programming",
"quantum simulation",
"quantum",
"schrödinger-feynman simulation",
"simulation",
"state vector simulator",
]
[project.urls]
documentation = "https://quantumai.google/qsim"
download = "https://pypi.org/project/qsimcirq/#files"
homepage = "https://quantumai.google/qsim"
issues = "https://github.com/quantumlib/qsim/issues"
source = "https://github.com/quantumlib/qsim"
[dependency-groups]
# Development dependencies. Install these with "pip install --group dev".
dev = [
# The following repeats [build-system].requires b/c pyproject.toml has no
# mechanism to reference that list. Keep these versions in sync with above.
"cmake~=3.28.1",
"pybind11[global]",
"setuptools>=78.1.1",
# Other build, packaging, and distribution utilities.
"cibuildwheel",
# Linters, formatters, and test utilities.
"black~=26.3.1",
"isort[colors]~=8.0.1",
"py-cpuinfo",
"pylint~=4.0.2",
"pytest",
"pytest-xdist",
]
[tool.setuptools]
packages = ["qsimcirq"]
package-data = {"qsimcirq" = ["py.typed"]}
[tool.setuptools.dynamic]
# The next one becomes the value of [project].version.
version = {attr = "qsimcirq._version.__version__"}
# The next one becomes [project].dependencies, equivalent to "install_requires"
# in setuptools' setup.py. "pip install qsim" installs these automatically.
dependencies = {file = ["requirements.txt"] }
[tool.cibuildwheel]
build = "cp310-* cp311-* cp312-* cp313-* cp314-*"
dependency-versions = "latest"
enable = ["cpython-prerelease"]
environment.PIP_PREFER_BINARY = "1"
before-test = "pip install --group dev"
# import-mode=importlib prevents local source shadowing when importing qsimcirq.
test-command = "pytest --import-mode=importlib -n auto -s -v {package}/qsimcirq_tests/qsimcirq_test.py"
[[tool.cibuildwheel.overrides]]
# Help increase the chances that pip will find binary wheels for NumPy.
# See https://cibuildwheel.pypa.io/en/stable/faq/#building-with-numpy
select = ["cp314*"]
inherit.environment = "append"
environment.PIP_EXTRA_INDEX_URL = "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/"
environment.PIP_PRERELEASE = "allow"
[tool.cibuildwheel.macos]
before-build = """
brew install -q libomp llvm@19 &&
brew unlink libomp &&
brew unlink llvm@19 &&
brew link --force libomp &&
brew link --force llvm@19
"""
repair-wheel-command = """
delocate-listdeps {wheel} &&
delocate-wheel --verbose --require-archs {delocate_archs} -w {dest_dir} {wheel}
"""
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux2014"
manylinux-i686-image = "manylinux2014"
skip = "*musllinux*"
[tool.black]
target-version = ['py310', 'py311', 'py312', 'py313', 'py314']
extend-exclude = 'third_party'
[tool.isort]
profile = 'black'
order_by_type = false # Sort alphabetically, irrespective of case.
skip_gitignore = true
combine_as_imports = true
known_first_party = ["qsimcirq*"]
extend_skip = ["__init__.py"]