superquantx 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- superquantx-0.1.0/.gitignore +487 -0
- superquantx-0.1.0/CHANGELOG.md +63 -0
- superquantx-0.1.0/CONTRIBUTING.md +245 -0
- superquantx-0.1.0/LICENSE +21 -0
- superquantx-0.1.0/Makefile +139 -0
- superquantx-0.1.0/PKG-INFO +365 -0
- superquantx-0.1.0/README.md +240 -0
- superquantx-0.1.0/pyproject.toml +334 -0
- superquantx-0.1.0/requirements-dev.txt +245 -0
- superquantx-0.1.0/requirements.txt +89 -0
- superquantx-0.1.0/src/superquantx/__init__.py +321 -0
- superquantx-0.1.0/src/superquantx/algorithms/__init__.py +55 -0
- superquantx-0.1.0/src/superquantx/algorithms/base_algorithm.py +413 -0
- superquantx-0.1.0/src/superquantx/algorithms/hybrid_classifier.py +628 -0
- superquantx-0.1.0/src/superquantx/algorithms/qaoa.py +406 -0
- superquantx-0.1.0/src/superquantx/algorithms/quantum_agents.py +1006 -0
- superquantx-0.1.0/src/superquantx/algorithms/quantum_kmeans.py +575 -0
- superquantx-0.1.0/src/superquantx/algorithms/quantum_nn.py +544 -0
- superquantx-0.1.0/src/superquantx/algorithms/quantum_pca.py +499 -0
- superquantx-0.1.0/src/superquantx/algorithms/quantum_svm.py +346 -0
- superquantx-0.1.0/src/superquantx/algorithms/vqe.py +553 -0
- superquantx-0.1.0/src/superquantx/algorithms.py +863 -0
- superquantx-0.1.0/src/superquantx/backends/__init__.py +265 -0
- superquantx-0.1.0/src/superquantx/backends/base_backend.py +321 -0
- superquantx-0.1.0/src/superquantx/backends/braket_backend.py +420 -0
- superquantx-0.1.0/src/superquantx/backends/cirq_backend.py +466 -0
- superquantx-0.1.0/src/superquantx/backends/ocean_backend.py +491 -0
- superquantx-0.1.0/src/superquantx/backends/pennylane_backend.py +419 -0
- superquantx-0.1.0/src/superquantx/backends/qiskit_backend.py +451 -0
- superquantx-0.1.0/src/superquantx/backends/simulator_backend.py +455 -0
- superquantx-0.1.0/src/superquantx/backends/tket_backend.py +519 -0
- superquantx-0.1.0/src/superquantx/circuits.py +447 -0
- superquantx-0.1.0/src/superquantx/cli/__init__.py +28 -0
- superquantx-0.1.0/src/superquantx/cli/commands.py +528 -0
- superquantx-0.1.0/src/superquantx/cli/main.py +254 -0
- superquantx-0.1.0/src/superquantx/client.py +298 -0
- superquantx-0.1.0/src/superquantx/config.py +326 -0
- superquantx-0.1.0/src/superquantx/exceptions.py +287 -0
- superquantx-0.1.0/src/superquantx/gates.py +588 -0
- superquantx-0.1.0/src/superquantx/logging_config.py +347 -0
- superquantx-0.1.0/src/superquantx/measurements.py +702 -0
- superquantx-0.1.0/src/superquantx/ml.py +936 -0
- superquantx-0.1.0/src/superquantx/noise.py +760 -0
- superquantx-0.1.0/src/superquantx/utils/__init__.py +83 -0
- superquantx-0.1.0/src/superquantx/utils/benchmarking.py +523 -0
- superquantx-0.1.0/src/superquantx/utils/classical_utils.py +575 -0
- superquantx-0.1.0/src/superquantx/utils/feature_mapping.py +467 -0
- superquantx-0.1.0/src/superquantx/utils/optimization.py +410 -0
- superquantx-0.1.0/src/superquantx/utils/quantum_utils.py +456 -0
- superquantx-0.1.0/src/superquantx/utils/visualization.py +654 -0
- superquantx-0.1.0/src/superquantx/version.py +33 -0
@@ -0,0 +1,487 @@
|
|
1
|
+
# ==============================================
|
2
|
+
# SuperQuantX .gitignore - Comprehensive Python Project
|
3
|
+
# ==============================================
|
4
|
+
|
5
|
+
# Byte-compiled / optimized / DLL files
|
6
|
+
__pycache__/
|
7
|
+
*.py[cod]
|
8
|
+
*$py.class
|
9
|
+
|
10
|
+
# C extensions
|
11
|
+
*.so
|
12
|
+
|
13
|
+
# Distribution / packaging
|
14
|
+
.Python
|
15
|
+
build/
|
16
|
+
develop-eggs/
|
17
|
+
dist/
|
18
|
+
downloads/
|
19
|
+
eggs/
|
20
|
+
.eggs/
|
21
|
+
lib/
|
22
|
+
lib64/
|
23
|
+
parts/
|
24
|
+
sdist/
|
25
|
+
var/
|
26
|
+
wheels/
|
27
|
+
share/python-wheels/
|
28
|
+
*.egg-info/
|
29
|
+
.installed.cfg
|
30
|
+
*.egg
|
31
|
+
MANIFEST
|
32
|
+
|
33
|
+
# PyInstaller
|
34
|
+
# Usually these files are written by a python script from a template
|
35
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
36
|
+
*.manifest
|
37
|
+
*.spec
|
38
|
+
|
39
|
+
# Installer logs
|
40
|
+
pip-log.txt
|
41
|
+
pip-delete-this-directory.txt
|
42
|
+
|
43
|
+
# Unit test / coverage reports
|
44
|
+
htmlcov/
|
45
|
+
.tox/
|
46
|
+
.nox/
|
47
|
+
.coverage
|
48
|
+
.coverage.*
|
49
|
+
.cache
|
50
|
+
nosetests.xml
|
51
|
+
coverage.xml
|
52
|
+
*.cover
|
53
|
+
*.py,cover
|
54
|
+
.hypothesis/
|
55
|
+
.pytest_cache/
|
56
|
+
cover/
|
57
|
+
test-results/
|
58
|
+
.test_data/
|
59
|
+
|
60
|
+
# Translations
|
61
|
+
*.mo
|
62
|
+
*.pot
|
63
|
+
|
64
|
+
# Django stuff:
|
65
|
+
*.log
|
66
|
+
local_settings.py
|
67
|
+
db.sqlite3
|
68
|
+
db.sqlite3-journal
|
69
|
+
|
70
|
+
# Flask stuff:
|
71
|
+
instance/
|
72
|
+
.webassets-cache
|
73
|
+
|
74
|
+
# Scrapy stuff:
|
75
|
+
.scrapy
|
76
|
+
|
77
|
+
# Sphinx documentation
|
78
|
+
docs/_build/
|
79
|
+
docs/build/
|
80
|
+
|
81
|
+
# PyBuilder
|
82
|
+
.pybuilder/
|
83
|
+
target/
|
84
|
+
|
85
|
+
# Jupyter Notebook
|
86
|
+
.ipynb_checkpoints
|
87
|
+
*.ipynb_orig
|
88
|
+
|
89
|
+
# IPython
|
90
|
+
profile_default/
|
91
|
+
ipython_config.py
|
92
|
+
|
93
|
+
# pyenv
|
94
|
+
# For a library or package, you might want to ignore these files since the code is
|
95
|
+
# intended to run in multiple environments; otherwise, check them in:
|
96
|
+
.python-version
|
97
|
+
|
98
|
+
# pipenv
|
99
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
100
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
101
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
102
|
+
# install all needed dependencies.
|
103
|
+
#Pipfile.lock
|
104
|
+
|
105
|
+
# poetry
|
106
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
107
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
108
|
+
# commonly ignored for libraries.
|
109
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
110
|
+
#poetry.lock
|
111
|
+
|
112
|
+
# pdm
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
114
|
+
#pdm.lock
|
115
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
116
|
+
# in version control.
|
117
|
+
# https://pdm.fming.dev/#use-with-ide
|
118
|
+
.pdm.toml
|
119
|
+
.pdm-python
|
120
|
+
|
121
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
122
|
+
__pypackages__/
|
123
|
+
|
124
|
+
# Celery stuff
|
125
|
+
celerybeat-schedule
|
126
|
+
celerybeat.pid
|
127
|
+
|
128
|
+
# SageMath parsed files
|
129
|
+
*.sage.py
|
130
|
+
|
131
|
+
# Environments
|
132
|
+
.env
|
133
|
+
.env.*
|
134
|
+
.venv
|
135
|
+
env/
|
136
|
+
venv/
|
137
|
+
ENV/
|
138
|
+
env.bak/
|
139
|
+
venv.bak/
|
140
|
+
|
141
|
+
# Spyder project settings
|
142
|
+
.spyderproject
|
143
|
+
.spyproject
|
144
|
+
|
145
|
+
# Rope project settings
|
146
|
+
.ropeproject
|
147
|
+
|
148
|
+
# mkdocs documentation
|
149
|
+
/site
|
150
|
+
|
151
|
+
# mypy
|
152
|
+
.mypy_cache/
|
153
|
+
.dmypy.json
|
154
|
+
dmypy.json
|
155
|
+
|
156
|
+
# Pyre type checker
|
157
|
+
.pyre/
|
158
|
+
|
159
|
+
# pytype static type analyzer
|
160
|
+
.pytype/
|
161
|
+
|
162
|
+
# Cython debug symbols
|
163
|
+
cython_debug/
|
164
|
+
|
165
|
+
# ==============================================
|
166
|
+
# IDE and Editor Files
|
167
|
+
# ==============================================
|
168
|
+
|
169
|
+
# PyCharm
|
170
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
171
|
+
# be added to the global gitignore or merged into this project gitignore. For a PyCharm
|
172
|
+
# project, it is recommended to use the default PyCharm .gitignore template.
|
173
|
+
.idea/
|
174
|
+
|
175
|
+
# Visual Studio Code
|
176
|
+
.vscode/
|
177
|
+
.history/
|
178
|
+
|
179
|
+
# Sublime Text
|
180
|
+
*.sublime-project
|
181
|
+
*.sublime-workspace
|
182
|
+
|
183
|
+
# Vim
|
184
|
+
*.swp
|
185
|
+
*.swo
|
186
|
+
*~
|
187
|
+
|
188
|
+
# Emacs
|
189
|
+
*~
|
190
|
+
\#*\#
|
191
|
+
/.emacs.desktop
|
192
|
+
/.emacs.desktop.lock
|
193
|
+
*.elc
|
194
|
+
auto-save-list
|
195
|
+
tramp
|
196
|
+
.\#*
|
197
|
+
|
198
|
+
# ==============================================
|
199
|
+
# Operating System Files
|
200
|
+
# ==============================================
|
201
|
+
|
202
|
+
# macOS
|
203
|
+
.DS_Store
|
204
|
+
.AppleDouble
|
205
|
+
.LSOverride
|
206
|
+
Icon
|
207
|
+
._*
|
208
|
+
.DocumentRevisions-V100
|
209
|
+
.fseventsd
|
210
|
+
.Spotlight-V100
|
211
|
+
.TemporaryItems
|
212
|
+
.Trashes
|
213
|
+
.VolumeIcon.icns
|
214
|
+
.com.apple.timemachine.donotpresent
|
215
|
+
|
216
|
+
# Windows
|
217
|
+
Thumbs.db
|
218
|
+
Thumbs.db:encryptable
|
219
|
+
ehthumbs.db
|
220
|
+
ehthumbs_vista.db
|
221
|
+
*.stackdump
|
222
|
+
[Dd]esktop.ini
|
223
|
+
$RECYCLE.BIN/
|
224
|
+
*.cab
|
225
|
+
*.msi
|
226
|
+
*.msix
|
227
|
+
*.msm
|
228
|
+
*.msp
|
229
|
+
*.lnk
|
230
|
+
|
231
|
+
# Linux
|
232
|
+
*~
|
233
|
+
|
234
|
+
# ==============================================
|
235
|
+
# Claude Code and AI Assistant Files
|
236
|
+
# ==============================================
|
237
|
+
|
238
|
+
# Claude Code configuration and cache
|
239
|
+
.claude/
|
240
|
+
.claude.*
|
241
|
+
claude_cache/
|
242
|
+
.anthropic/
|
243
|
+
.anthropic.*
|
244
|
+
|
245
|
+
# ==============================================
|
246
|
+
# Quantum Computing Platform Files
|
247
|
+
# ==============================================
|
248
|
+
|
249
|
+
# Qiskit
|
250
|
+
.qiskit/
|
251
|
+
qiskit.log
|
252
|
+
qiskit_cache/
|
253
|
+
|
254
|
+
# Amazon Braket
|
255
|
+
.braket/
|
256
|
+
braket_cache/
|
257
|
+
|
258
|
+
# Azure Quantum
|
259
|
+
.azure_quantum/
|
260
|
+
azure_quantum_cache/
|
261
|
+
|
262
|
+
# D-Wave
|
263
|
+
.dwave_config/
|
264
|
+
dwave_cache/
|
265
|
+
|
266
|
+
# Rigetti
|
267
|
+
.rigetti_config/
|
268
|
+
rigetti_cache/
|
269
|
+
|
270
|
+
# IBM Quantum
|
271
|
+
.ibm_quantum/
|
272
|
+
ibm_quantum_cache/
|
273
|
+
|
274
|
+
# Google Quantum AI
|
275
|
+
.google_quantum/
|
276
|
+
google_quantum_cache/
|
277
|
+
|
278
|
+
# Quantum circuit files (if temporary)
|
279
|
+
*.qasm
|
280
|
+
*.quil
|
281
|
+
*.pulse
|
282
|
+
*.qobj
|
283
|
+
*.pulse_schedule
|
284
|
+
|
285
|
+
# ==============================================
|
286
|
+
# Data and Output Files
|
287
|
+
# ==============================================
|
288
|
+
|
289
|
+
# Data files
|
290
|
+
*.h5
|
291
|
+
*.hdf5
|
292
|
+
*.npz
|
293
|
+
*.pkl
|
294
|
+
*.pickle
|
295
|
+
*.parquet
|
296
|
+
*.feather
|
297
|
+
*.csv
|
298
|
+
*.json
|
299
|
+
*.yaml
|
300
|
+
*.yml
|
301
|
+
data/
|
302
|
+
datasets/
|
303
|
+
raw_data/
|
304
|
+
processed_data/
|
305
|
+
*.sqlite
|
306
|
+
*.db
|
307
|
+
|
308
|
+
# Model files
|
309
|
+
*.model
|
310
|
+
*.joblib
|
311
|
+
*.pt
|
312
|
+
*.pth
|
313
|
+
*.ckpt
|
314
|
+
*.safetensors
|
315
|
+
models/
|
316
|
+
checkpoints/
|
317
|
+
|
318
|
+
# Results and outputs
|
319
|
+
results/
|
320
|
+
outputs/
|
321
|
+
logs/
|
322
|
+
plots/
|
323
|
+
figures/
|
324
|
+
*.png
|
325
|
+
*.jpg
|
326
|
+
*.jpeg
|
327
|
+
*.gif
|
328
|
+
*.svg
|
329
|
+
*.pdf
|
330
|
+
*.eps
|
331
|
+
|
332
|
+
# ==============================================
|
333
|
+
# Benchmarking and Performance
|
334
|
+
# ==============================================
|
335
|
+
|
336
|
+
# Benchmark results
|
337
|
+
.benchmarks/
|
338
|
+
benchmarks/
|
339
|
+
benchmark_results/
|
340
|
+
*.benchmark
|
341
|
+
perf_results/
|
342
|
+
profiling/
|
343
|
+
*.prof
|
344
|
+
*.profile
|
345
|
+
|
346
|
+
# ==============================================
|
347
|
+
# Temporary and Cache Files
|
348
|
+
# ==============================================
|
349
|
+
|
350
|
+
# Temporary files
|
351
|
+
*.tmp
|
352
|
+
*.temp
|
353
|
+
.temp/
|
354
|
+
.temporary/
|
355
|
+
tmp/
|
356
|
+
temp/
|
357
|
+
|
358
|
+
# Cache files
|
359
|
+
.cache/
|
360
|
+
cache/
|
361
|
+
.cached/
|
362
|
+
*.cache
|
363
|
+
|
364
|
+
# Lock files
|
365
|
+
*.lock
|
366
|
+
|
367
|
+
# ==============================================
|
368
|
+
# Development and Testing
|
369
|
+
# ==============================================
|
370
|
+
|
371
|
+
# Pre-commit
|
372
|
+
.pre-commit-config.yaml.bak
|
373
|
+
|
374
|
+
# Ruff cache
|
375
|
+
.ruff_cache/
|
376
|
+
|
377
|
+
# Black cache
|
378
|
+
.black_cache/
|
379
|
+
|
380
|
+
# Coverage files
|
381
|
+
.coverage*
|
382
|
+
htmlcov/
|
383
|
+
coverage/
|
384
|
+
|
385
|
+
# Test artifacts
|
386
|
+
.pytest_cache/
|
387
|
+
.tox/
|
388
|
+
.nox/
|
389
|
+
|
390
|
+
# ==============================================
|
391
|
+
# Documentation Build Files
|
392
|
+
# ==============================================
|
393
|
+
|
394
|
+
# MkDocs
|
395
|
+
/site/
|
396
|
+
site/
|
397
|
+
|
398
|
+
# Sphinx
|
399
|
+
docs/_build/
|
400
|
+
docs/build/
|
401
|
+
_build/
|
402
|
+
|
403
|
+
# ==============================================
|
404
|
+
# Configuration and Secrets
|
405
|
+
# ==============================================
|
406
|
+
|
407
|
+
# Configuration files with sensitive information
|
408
|
+
config.yaml
|
409
|
+
config.json
|
410
|
+
*.credentials
|
411
|
+
*.key
|
412
|
+
*.pem
|
413
|
+
*.p12
|
414
|
+
secrets.yaml
|
415
|
+
secrets.json
|
416
|
+
.secrets/
|
417
|
+
credentials/
|
418
|
+
|
419
|
+
# API keys and tokens
|
420
|
+
.env.local
|
421
|
+
.env.production
|
422
|
+
.env.staging
|
423
|
+
.env.development
|
424
|
+
*.token
|
425
|
+
*.apikey
|
426
|
+
|
427
|
+
# ==============================================
|
428
|
+
# Package Managers
|
429
|
+
# ==============================================
|
430
|
+
|
431
|
+
# UV (Astral UV package manager)
|
432
|
+
.uv/
|
433
|
+
uv.lock
|
434
|
+
|
435
|
+
# Conda
|
436
|
+
.conda/
|
437
|
+
environment.yml
|
438
|
+
|
439
|
+
# Node.js (for docs or tools)
|
440
|
+
node_modules/
|
441
|
+
npm-debug.log*
|
442
|
+
yarn-debug.log*
|
443
|
+
yarn-error.log*
|
444
|
+
.npm
|
445
|
+
.yarn/
|
446
|
+
|
447
|
+
# ==============================================
|
448
|
+
# Jupyter and Notebooks
|
449
|
+
# ==============================================
|
450
|
+
|
451
|
+
# Jupyter Notebook Checkpoints
|
452
|
+
.ipynb_checkpoints/
|
453
|
+
|
454
|
+
# Jupyter Lab
|
455
|
+
.jupyter/
|
456
|
+
|
457
|
+
# JupyterLite
|
458
|
+
.jupyterlite.doit.db
|
459
|
+
|
460
|
+
# ==============================================
|
461
|
+
# Miscellaneous
|
462
|
+
# ==============================================
|
463
|
+
|
464
|
+
# Backup files
|
465
|
+
*.bak
|
466
|
+
*.backup
|
467
|
+
*~
|
468
|
+
*.orig
|
469
|
+
|
470
|
+
# Archive files
|
471
|
+
*.zip
|
472
|
+
*.tar
|
473
|
+
*.tar.gz
|
474
|
+
*.rar
|
475
|
+
*.7z
|
476
|
+
|
477
|
+
# System files
|
478
|
+
.DS_Store?
|
479
|
+
Thumbs.db?
|
480
|
+
|
481
|
+
# Custom project-specific patterns
|
482
|
+
# Add any SuperQuantX-specific patterns here
|
483
|
+
quantum_experiments/
|
484
|
+
experiment_logs/
|
485
|
+
quantum_results/
|
486
|
+
circuit_cache/
|
487
|
+
backend_cache/
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to SuperQuantX will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [Unreleased]
|
9
|
+
|
10
|
+
### Planned
|
11
|
+
- Quantum reinforcement learning algorithms
|
12
|
+
- Quantum natural language processing
|
13
|
+
- Fault-tolerant quantum algorithms
|
14
|
+
- Quantum federated learning
|
15
|
+
|
16
|
+
## [0.1.0] - 2024-09-06
|
17
|
+
|
18
|
+
### Added
|
19
|
+
- Initial release of SuperQuantX
|
20
|
+
- Complete project structure with modern Python packaging
|
21
|
+
- Support for all major quantum computing platforms:
|
22
|
+
- IBM Qiskit
|
23
|
+
- Xanadu PennyLane
|
24
|
+
- Google Cirq
|
25
|
+
- AWS Braket
|
26
|
+
- Microsoft Azure Quantum
|
27
|
+
- Quantinuum TKET
|
28
|
+
- D-Wave Ocean SDK
|
29
|
+
- Rigetti Forest
|
30
|
+
- NVIDIA cuQuantum
|
31
|
+
- TensorFlow Quantum
|
32
|
+
- Core quantum machine learning algorithms:
|
33
|
+
- Quantum Support Vector Machine (QSVM)
|
34
|
+
- Quantum Approximate Optimization Algorithm (QAOA)
|
35
|
+
- Variational Quantum Eigensolver (VQE)
|
36
|
+
- Quantum Neural Networks (QNN)
|
37
|
+
- Quantum Principal Component Analysis (QPCA)
|
38
|
+
- Quantum K-Means Clustering
|
39
|
+
- Hybrid Quantum-Classical Classifiers
|
40
|
+
- Automatic backend selection and optimization
|
41
|
+
- Comprehensive utilities for optimization, visualization, and benchmarking
|
42
|
+
- Command-line interface for easy experimentation
|
43
|
+
- Extensive documentation and examples
|
44
|
+
- Complete test suite with coverage
|
45
|
+
- Development tools and pre-commit hooks
|
46
|
+
|
47
|
+
### Features
|
48
|
+
- Unified API across all quantum platforms
|
49
|
+
- Smart backend auto-selection based on problem requirements
|
50
|
+
- Quantum dataset generators and loaders
|
51
|
+
- Performance benchmarking tools
|
52
|
+
- Circuit optimization utilities
|
53
|
+
- Noise modeling and simulation
|
54
|
+
- Model serialization and loading
|
55
|
+
- Comprehensive visualization tools
|
56
|
+
- CLI for configuration, benchmarking, and examples
|
57
|
+
|
58
|
+
### Documentation
|
59
|
+
- Complete README with installation and usage examples
|
60
|
+
- API documentation structure
|
61
|
+
- Contributing guidelines
|
62
|
+
- Example notebooks and tutorials
|
63
|
+
- Performance benchmarks
|