Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (136 loc) · 4.08 KB
/
Copy pathpyproject.toml
File metadata and controls
155 lines (136 loc) · 4.08 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
[build-system]
requires = ["setuptools>=84.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cqlib-adapter"
dynamic = ["version"]
description = "Framework adapters for compiling and running Qiskit, Cirq, PennyLane, and CUDA-Q programs with cqlib and Tianyan Quantum Cloud."
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
authors = [
{ name = "China Telecom Quantum Group Quantum Computing Team", email = "tianyan@chinatelecom.cn" },
]
keywords = [
"cqlib",
"tianyan",
"qiskit",
"cirq",
"pennylane",
"cuda-q",
"quantum-computing",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"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",
"Typing :: Typed",
]
dependencies = [
"cqlib>=2.0.0b1,<2.1",
"cqlib-tianyan>=0.1.0b1,<0.2",
]
[project.optional-dependencies]
qiskit = ["qiskit>=2.1,<3"]
cirq = ["cirq-core>=1.7,<2"]
pennylane = ["pennylane>=0.44,<1"]
cudaq = ["cudaq>=0.15,<0.17; platform_system != 'Windows'"]
all = [
"qiskit>=2.1,<3",
"cirq-core>=1.7,<2",
"pennylane>=0.44,<1",
"cudaq>=0.15,<0.17; platform_system != 'Windows'",
]
dev = [
"qiskit>=2.1,<3",
"cirq-core>=1.7,<2",
"pennylane>=0.44,<1",
"build>=1.2",
"hypothesis>=6.168.4",
"mypy>=1.15",
"pre-commit>=4.6.2",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"ruff>=0.12",
"twine>=7.0.0",
]
[project.urls]
Homepage = "https://qc.zdxlz.com/"
Repository = "https://github.com/cq-lib/cqlib-adapter"
Issues = "https://github.com/cq-lib/cqlib-adapter/issues"
[tool.setuptools.dynamic]
version = { attr = "cqlib_adapter._version.__version__" }
[tool.setuptools.packages.find]
where = ["."]
include = ["cqlib_adapter*"]
[tool.setuptools.package-data]
cqlib_adapter = ["py.typed"]
[tool.pytest.ini_options]
minversion = "8.4"
addopts = ["-ra", "--strict-config", "--strict-markers"]
testpaths = ["tests"]
markers = [
"unit: fast tests without network or installed quantum frameworks",
"integration: local integration tests across packages",
"cloud: tests requiring Tianyan credentials and network access",
"slow: tests intentionally excluded from the default fast suite",
"qiskit: tests requiring the qiskit extra",
"cirq: tests requiring the cirq extra",
"pennylane: tests requiring the pennylane extra",
"cudaq: tests requiring the cudaq extra and a supported platform",
]
[tool.coverage.run]
branch = true
source = ["cqlib_adapter"]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 80
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = ["build", "dist"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "PT", "RUF", "S"]
[tool.ruff.lint.isort]
known-first-party = ["cqlib_adapter"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "S603"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_unreachable = true
pretty = true
packages = ["cqlib_adapter"]
[[tool.mypy.overrides]]
module = ["cqlib_adapter.qiskit.*"]
ignore_missing_imports = true
disallow_subclassing_any = false
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = ["cqlib_adapter.cirq.*"]
ignore_missing_imports = true
disallow_subclassing_any = false
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = ["cqlib_adapter.pennylane.*"]
ignore_missing_imports = true
disallow_subclassing_any = false
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = ["cqlib_adapter.cudaq.*"]
ignore_missing_imports = true
disallow_subclassing_any = false
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = ["cudaq", "cudaq.*"]
ignore_missing_imports = true