qudet 1.0.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.
Files changed (68) hide show
  1. qudet-1.0.0/CHANGELOG.md +51 -0
  2. qudet-1.0.0/LICENSE +201 -0
  3. qudet-1.0.0/MANIFEST.in +4 -0
  4. qudet-1.0.0/PKG-INFO +197 -0
  5. qudet-1.0.0/README.md +138 -0
  6. qudet-1.0.0/pyproject.toml +92 -0
  7. qudet-1.0.0/qudet/__init__.py +15 -0
  8. qudet-1.0.0/qudet/analytics/__init__.py +19 -0
  9. qudet-1.0.0/qudet/analytics/anomaly.py +172 -0
  10. qudet-1.0.0/qudet/analytics/classifier.py +205 -0
  11. qudet-1.0.0/qudet/analytics/clustering.py +210 -0
  12. qudet-1.0.0/qudet/analytics/feature_select.py +208 -0
  13. qudet-1.0.0/qudet/analytics/regression.py +188 -0
  14. qudet-1.0.0/qudet/compute/__init__.py +57 -0
  15. qudet-1.0.0/qudet/compute/backend.py +98 -0
  16. qudet-1.0.0/qudet/compute/compilation.py +249 -0
  17. qudet-1.0.0/qudet/compute/distributed.py +113 -0
  18. qudet-1.0.0/qudet/compute/error_mitigation.py +297 -0
  19. qudet-1.0.0/qudet/compute/layout.py +129 -0
  20. qudet-1.0.0/qudet/compute/resource_management.py +294 -0
  21. qudet-1.0.0/qudet/compute/simplify.py +125 -0
  22. qudet-1.0.0/qudet/connectors/__init__.py +75 -0
  23. qudet-1.0.0/qudet/connectors/loader.py +107 -0
  24. qudet-1.0.0/qudet/connectors/parquet.py +194 -0
  25. qudet-1.0.0/qudet/connectors/serialization.py +158 -0
  26. qudet-1.0.0/qudet/connectors/sql.py +165 -0
  27. qudet-1.0.0/qudet/connectors/streaming.py +367 -0
  28. qudet-1.0.0/qudet/connectors/transformation.py +327 -0
  29. qudet-1.0.0/qudet/connectors/utilities.py +382 -0
  30. qudet-1.0.0/qudet/core/__init__.py +27 -0
  31. qudet-1.0.0/qudet/core/base.py +138 -0
  32. qudet-1.0.0/qudet/core/exceptions.py +37 -0
  33. qudet-1.0.0/qudet/datasets/iris.csv +151 -0
  34. qudet-1.0.0/qudet/encoders/__init__.py +67 -0
  35. qudet-1.0.0/qudet/encoders/amplitude.py +430 -0
  36. qudet-1.0.0/qudet/encoders/angle_phase.py +523 -0
  37. qudet-1.0.0/qudet/encoders/composite.py +600 -0
  38. qudet-1.0.0/qudet/encoders/iqp.py +106 -0
  39. qudet-1.0.0/qudet/encoders/rotation.py +83 -0
  40. qudet-1.0.0/qudet/encoders/statevector.py +136 -0
  41. qudet-1.0.0/qudet/governance/__init__.py +61 -0
  42. qudet-1.0.0/qudet/governance/audit.py +404 -0
  43. qudet-1.0.0/qudet/governance/cost.py +120 -0
  44. qudet-1.0.0/qudet/governance/drift.py +254 -0
  45. qudet-1.0.0/qudet/governance/integrity.py +192 -0
  46. qudet-1.0.0/qudet/governance/monitor.py +224 -0
  47. qudet-1.0.0/qudet/governance/orchestration.py +483 -0
  48. qudet-1.0.0/qudet/governance/privacy.py +137 -0
  49. qudet-1.0.0/qudet/governance/security.py +555 -0
  50. qudet-1.0.0/qudet/governance/simulation.py +304 -0
  51. qudet-1.0.0/qudet/governance/validation.py +38 -0
  52. qudet-1.0.0/qudet/governance/visualization.py +103 -0
  53. qudet-1.0.0/qudet/transforms/__init__.py +68 -0
  54. qudet-1.0.0/qudet/transforms/auto.py +123 -0
  55. qudet-1.0.0/qudet/transforms/coresets.py +121 -0
  56. qudet-1.0.0/qudet/transforms/encoding.py +555 -0
  57. qudet-1.0.0/qudet/transforms/feature_engineering.py +642 -0
  58. qudet-1.0.0/qudet/transforms/imputation.py +174 -0
  59. qudet-1.0.0/qudet/transforms/normalization.py +657 -0
  60. qudet-1.0.0/qudet/transforms/pca.py +107 -0
  61. qudet-1.0.0/qudet/transforms/projections.py +87 -0
  62. qudet-1.0.0/qudet/transforms/sketching.py +80 -0
  63. qudet-1.0.0/qudet.egg-info/PKG-INFO +197 -0
  64. qudet-1.0.0/qudet.egg-info/SOURCES.txt +66 -0
  65. qudet-1.0.0/qudet.egg-info/dependency_links.txt +1 -0
  66. qudet-1.0.0/qudet.egg-info/requires.txt +36 -0
  67. qudet-1.0.0/qudet.egg-info/top_level.txt +1 -0
  68. qudet-1.0.0/setup.cfg +4 -0
@@ -0,0 +1,51 @@
1
+ # Changelog
2
+
3
+ All notable changes to QuDET will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.0.0] - 2026-06-20
9
+
10
+ ### Added
11
+ - Modern `pyproject.toml` build configuration (PEP 621).
12
+ - Comprehensive exception hierarchy (`QuDETError`, `EncodingError`, `CircuitError`,
13
+ `ValidationError`, `BackendError`, `NotFittedError`).
14
+ - Optional dependency groups: `parquet`, `sql`, `crypto`, `distributed`, `visualization`, `ibm`, `dev`.
15
+ - Professional docstrings across all public APIs.
16
+ - Input validation and descriptive error messages in all modules.
17
+ - `__repr__` on all base classes for better debugging.
18
+ - `_check_is_fitted()` helper on `BaseQuantumEstimator`.
19
+
20
+ ### Changed
21
+ - **Breaking:** Minimum Qiskit version is now `>=1.0`. All deprecated APIs removed.
22
+ - **Breaking:** Removed placeholder analytics modules (`ensemble`, `neural_net`, `vqe`,
23
+ `autoencoder`, `timeseries`) that had non-functional implementations.
24
+ - Replaced `requirements.txt` with minimal `pyproject.toml` dependencies.
25
+ - All `fit()` methods now consistently return `self` for method chaining.
26
+ - All `BaseReducer.fit()` signatures now accept `y=None` parameter.
27
+ - Switched from `print()` to `logging` module throughout.
28
+ - `DataSplitter`/`DataSampler` now use `np.random.default_rng()` instead of global seed.
29
+
30
+ ### Fixed
31
+ - `RotationEncoder.encode()` now actually uses input data (was ignoring it entirely).
32
+ - `CompositeEncoder` — fixed `add_register(QuantumCircuit(...))` → `add_register(QuantumRegister(...))`.
33
+ - `PhaseEncoder.encode()` — fixed IndexError in entanglement loop.
34
+ - `DataTransformer` — 'scale' and 'standardize' no longer do the same thing.
35
+ - `DataTransformer.transform()` — no longer mutates stored `fit_params`.
36
+ - `DataValidator` — `allow_nan=True` now correctly permits NaN values.
37
+ - `CoresetReducer.transform()` — now maps input points to nearest coreset representatives.
38
+ - `OutlierRemover.transform()` — recomputes mask on new data.
39
+ - `QuantumImputer` now properly extends `BaseReducer`.
40
+ - Removed broken `fit_transform()` on `BaseQuantumEstimator`.
41
+ - Fixed `security.py` encryption (was using one-way SHA-256 hash).
42
+ - Fixed `privacy.py` sanitize() (was a no-op).
43
+
44
+ ### Removed
45
+ - `qudet/_base.py` (duplicate of `qudet/core/base.py`).
46
+ - `qudet/compute/airflow_ops.py` (incomplete; requires Apache Airflow).
47
+ - `qudet/analytics/ensemble.py` (predictions ignored input data).
48
+ - `qudet/analytics/neural_net.py` (gradients were always zero).
49
+ - `qudet/analytics/vqe.py` (cheated by computing exact eigenvalues).
50
+ - `qudet/analytics/autoencoder.py` (all methods were stubs).
51
+ - `qudet/analytics/timeseries.py` (purely classical, no quantum circuits).
qudet-1.0.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,4 @@
1
+ include LICENSE
2
+ include README.md
3
+ include CHANGELOG.md
4
+ recursive-include qudet/datasets *.csv
qudet-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,197 @@
1
+ Metadata-Version: 2.4
2
+ Name: qudet
3
+ Version: 1.0.0
4
+ Summary: Quantum Data Engineering Toolkit — A modular Python framework for quantum-enhanced data pipelines.
5
+ Author-email: Satwik Sai Prakash Sahoo <sahoospsatwik@gmail.com>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/satwiksps/qudet-dev
8
+ Project-URL: Documentation, https://github.com/satwiksps/qudet-dev#readme
9
+ Project-URL: Repository, https://github.com/satwiksps/qudet-dev
10
+ Project-URL: Issues, https://github.com/satwiksps/qudet-dev/issues
11
+ Project-URL: Changelog, https://github.com/satwiksps/qudet-dev/blob/main/CHANGELOG.md
12
+ Keywords: quantum,quantum-computing,quantum-machine-learning,data-engineering,qiskit,mlops
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Scientific/Engineering
24
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
25
+ Classifier: Topic :: Scientific/Engineering :: Physics
26
+ Classifier: Typing :: Typed
27
+ Requires-Python: >=3.10
28
+ Description-Content-Type: text/markdown
29
+ License-File: LICENSE
30
+ Requires-Dist: numpy<3,>=1.24
31
+ Requires-Dist: pandas>=2.0
32
+ Requires-Dist: scipy>=1.10
33
+ Requires-Dist: scikit-learn>=1.3
34
+ Requires-Dist: qiskit>=1.0
35
+ Requires-Dist: qiskit-aer>=0.13
36
+ Provides-Extra: parquet
37
+ Requires-Dist: pyarrow>=14.0; extra == "parquet"
38
+ Provides-Extra: sql
39
+ Requires-Dist: sqlalchemy>=2.0; extra == "sql"
40
+ Provides-Extra: crypto
41
+ Requires-Dist: cryptography>=41.0; extra == "crypto"
42
+ Provides-Extra: distributed
43
+ Requires-Dist: dask[distributed]>=2024.1; extra == "distributed"
44
+ Provides-Extra: visualization
45
+ Requires-Dist: matplotlib>=3.7; extra == "visualization"
46
+ Requires-Dist: seaborn>=0.13; extra == "visualization"
47
+ Provides-Extra: ibm
48
+ Requires-Dist: qiskit-ibm-runtime>=0.20; extra == "ibm"
49
+ Provides-Extra: dev
50
+ Requires-Dist: pytest>=8.0; extra == "dev"
51
+ Requires-Dist: pytest-cov>=4.1; extra == "dev"
52
+ Requires-Dist: black>=24.0; extra == "dev"
53
+ Requires-Dist: ruff>=0.3; extra == "dev"
54
+ Requires-Dist: build; extra == "dev"
55
+ Requires-Dist: twine; extra == "dev"
56
+ Provides-Extra: all
57
+ Requires-Dist: qudet[crypto,dev,distributed,ibm,parquet,sql,visualization]; extra == "all"
58
+ Dynamic: license-file
59
+
60
+ <p align="center">
61
+ <h1 align="center">QuDET</h1>
62
+ <p align="center"><strong>Quantum Data Engineering Toolkit</strong></p>
63
+ <p align="center">
64
+ A modular Python framework for building hybrid classical–quantum data pipelines.
65
+ </p>
66
+ </p>
67
+
68
+ <p align="center">
69
+ <a href="https://pypi.org/project/qudet/"><img src="https://img.shields.io/pypi/v/qudet?color=blue" alt="PyPI version"></a>
70
+ <a href="https://pypi.org/project/qudet/"><img src="https://img.shields.io/pypi/pyversions/qudet" alt="Python versions"></a>
71
+ <a href="https://github.com/satwiksps/qudet-dev/blob/main/LICENSE"><img src="https://img.shields.io/github/license/satwiksps/qudet-dev" alt="License"></a>
72
+ </p>
73
+
74
+ ---
75
+
76
+ ## Overview
77
+
78
+ **QuDET** bridges the gap between classical data engineering and quantum computing. It provides a production-ready, modular framework that lets AI engineers and researchers integrate quantum algorithms into data pipelines without deep quantum physics expertise.
79
+
80
+ QuDET follows scikit-learn conventions (`fit` / `transform` / `predict`) so you can drop quantum components into existing ML workflows with minimal friction.
81
+
82
+ ## Why QuDET?
83
+
84
+ - **Practical quantum integration:** Quantum components solve real problems (kernel methods, encoding, anomaly detection) rather than existing for novelty.
85
+ - **Familiar API:** scikit-learn compatible interfaces mean minimal learning curve.
86
+ - **Modular architecture:** Use only what you need. Each module works independently.
87
+ - **Production-ready:** Input validation, proper error handling, logging, and type hints throughout.
88
+ - **Simulator-first:** Works out of the box with Qiskit Aer. Optional IBM Quantum hardware support.
89
+
90
+ ## Architecture
91
+
92
+ QuDET is organized into six specialized layers:
93
+
94
+
95
+ | Module | Purpose | Key Classes |
96
+ |--------|---------|-------------|
97
+ | **Connectors** | Data ingestion & I/O | `QuantumDataLoader`, `QuantumParquetLoader`, `QuantumSQLLoader` |
98
+ | **Transforms** | Feature engineering | `QuantumPCA`, `FeatureScaler`, `QuantumNormalizer`, `CoresetReducer` |
99
+ | **Encoders** | Classical to Quantum | `AngleEncoder`, `AmplitudeEncoder`, `IQPEncoder`, `RotationEncoder` |
100
+ | **Analytics** | Quantum ML models | `QuantumSVC`, `QuantumKernelRegressor`, `QuantumKMeans` |
101
+ | **Compute** | Execution layer | `BackendManager`, `CircuitOptimizer`, `QuantumErrorMitigation` |
102
+ | **Governance** | Safety & operations | `QuantumDriftDetector`, `ResourceEstimator`, `AuditLogger` |
103
+
104
+ ## Installation
105
+
106
+ ```bash
107
+ pip install qudet
108
+ ```
109
+
110
+ ### Optional Dependencies
111
+
112
+ ```bash
113
+ # SQL database connectors
114
+ pip install "qudet[sql]"
115
+
116
+ # Encryption and security features
117
+ pip install "qudet[crypto]"
118
+
119
+ # Distributed computing with Dask
120
+ pip install "qudet[distributed]"
121
+
122
+ # IBM Quantum hardware access
123
+ pip install "qudet[ibm]"
124
+
125
+ # Everything (including dev tools)
126
+ pip install "qudet[all]"
127
+ ```
128
+
129
+ ### Testing the installation
130
+
131
+ Open a Python prompt and run this minimal code to verify QuDET is installed correctly:
132
+
133
+ ```python
134
+ import numpy as np
135
+ from qudet.encoders import AngleEncoder
136
+
137
+ # Create dummy data and encode it
138
+ data = np.array([0.5, 0.8])
139
+ encoder = AngleEncoder(n_qubits=2)
140
+ circuit = encoder.encode(data)
141
+
142
+ print(f"QuDET installed successfully! Generated a {circuit.num_qubits}-qubit circuit.")
143
+ ```
144
+
145
+ ## Examples & Tutorials
146
+
147
+ Check out the `examples/` directory in this repository! We provide a highly informative **Kickstart Guide** (`kickstart_guide.ipynb`) that walks you through an end-to-end real-world workflow using all 6 QuDET modules on a wine quality dataset.
148
+
149
+ ## Development Setup
150
+
151
+ ```bash
152
+ git clone https://github.com/satwiksps/qudet-dev.git
153
+ cd qudet-dev
154
+ python -m venv .venv
155
+
156
+ # Linux/macOS
157
+ source .venv/bin/activate
158
+
159
+ # Windows
160
+ .venv\Scripts\activate
161
+
162
+ pip install -e ".[dev]"
163
+ ```
164
+
165
+ ## Feedback and Contributions
166
+
167
+ We welcome any feedback on how `QuDET` is working and are happy to receive bug reports, pull requests, and other feedback:
168
+
169
+ Contributions are welcome! Please:
170
+
171
+ 1. Fork the repository
172
+ 2. Create a feature branch (`git checkout -b feature/my-feature`)
173
+ 3. Write tests for your changes
174
+ 4. Ensure all tests pass (`pytest`)
175
+ 5. Format code (`black .` and `ruff check .`)
176
+ 6. Submit a pull request
177
+
178
+ ## Testing
179
+
180
+ ```bash
181
+ # Run all tests
182
+ pytest
183
+
184
+ # Run with coverage
185
+ pytest --cov=qudet --cov-report=term-missing
186
+
187
+ # Run specific module tests
188
+ pytest tests/test_encoders/ -v
189
+
190
+ # Run only fast tests
191
+ pytest -m "not slow"
192
+ ```
193
+
194
+
195
+ ## License
196
+
197
+ Distributed under the **Apache 2.0 License**. See [LICENSE](LICENSE) for details.
qudet-1.0.0/README.md ADDED
@@ -0,0 +1,138 @@
1
+ <p align="center">
2
+ <h1 align="center">QuDET</h1>
3
+ <p align="center"><strong>Quantum Data Engineering Toolkit</strong></p>
4
+ <p align="center">
5
+ A modular Python framework for building hybrid classical–quantum data pipelines.
6
+ </p>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://pypi.org/project/qudet/"><img src="https://img.shields.io/pypi/v/qudet?color=blue" alt="PyPI version"></a>
11
+ <a href="https://pypi.org/project/qudet/"><img src="https://img.shields.io/pypi/pyversions/qudet" alt="Python versions"></a>
12
+ <a href="https://github.com/satwiksps/qudet-dev/blob/main/LICENSE"><img src="https://img.shields.io/github/license/satwiksps/qudet-dev" alt="License"></a>
13
+ </p>
14
+
15
+ ---
16
+
17
+ ## Overview
18
+
19
+ **QuDET** bridges the gap between classical data engineering and quantum computing. It provides a production-ready, modular framework that lets AI engineers and researchers integrate quantum algorithms into data pipelines without deep quantum physics expertise.
20
+
21
+ QuDET follows scikit-learn conventions (`fit` / `transform` / `predict`) so you can drop quantum components into existing ML workflows with minimal friction.
22
+
23
+ ## Why QuDET?
24
+
25
+ - **Practical quantum integration:** Quantum components solve real problems (kernel methods, encoding, anomaly detection) rather than existing for novelty.
26
+ - **Familiar API:** scikit-learn compatible interfaces mean minimal learning curve.
27
+ - **Modular architecture:** Use only what you need. Each module works independently.
28
+ - **Production-ready:** Input validation, proper error handling, logging, and type hints throughout.
29
+ - **Simulator-first:** Works out of the box with Qiskit Aer. Optional IBM Quantum hardware support.
30
+
31
+ ## Architecture
32
+
33
+ QuDET is organized into six specialized layers:
34
+
35
+
36
+ | Module | Purpose | Key Classes |
37
+ |--------|---------|-------------|
38
+ | **Connectors** | Data ingestion & I/O | `QuantumDataLoader`, `QuantumParquetLoader`, `QuantumSQLLoader` |
39
+ | **Transforms** | Feature engineering | `QuantumPCA`, `FeatureScaler`, `QuantumNormalizer`, `CoresetReducer` |
40
+ | **Encoders** | Classical to Quantum | `AngleEncoder`, `AmplitudeEncoder`, `IQPEncoder`, `RotationEncoder` |
41
+ | **Analytics** | Quantum ML models | `QuantumSVC`, `QuantumKernelRegressor`, `QuantumKMeans` |
42
+ | **Compute** | Execution layer | `BackendManager`, `CircuitOptimizer`, `QuantumErrorMitigation` |
43
+ | **Governance** | Safety & operations | `QuantumDriftDetector`, `ResourceEstimator`, `AuditLogger` |
44
+
45
+ ## Installation
46
+
47
+ ```bash
48
+ pip install qudet
49
+ ```
50
+
51
+ ### Optional Dependencies
52
+
53
+ ```bash
54
+ # SQL database connectors
55
+ pip install "qudet[sql]"
56
+
57
+ # Encryption and security features
58
+ pip install "qudet[crypto]"
59
+
60
+ # Distributed computing with Dask
61
+ pip install "qudet[distributed]"
62
+
63
+ # IBM Quantum hardware access
64
+ pip install "qudet[ibm]"
65
+
66
+ # Everything (including dev tools)
67
+ pip install "qudet[all]"
68
+ ```
69
+
70
+ ### Testing the installation
71
+
72
+ Open a Python prompt and run this minimal code to verify QuDET is installed correctly:
73
+
74
+ ```python
75
+ import numpy as np
76
+ from qudet.encoders import AngleEncoder
77
+
78
+ # Create dummy data and encode it
79
+ data = np.array([0.5, 0.8])
80
+ encoder = AngleEncoder(n_qubits=2)
81
+ circuit = encoder.encode(data)
82
+
83
+ print(f"QuDET installed successfully! Generated a {circuit.num_qubits}-qubit circuit.")
84
+ ```
85
+
86
+ ## Examples & Tutorials
87
+
88
+ Check out the `examples/` directory in this repository! We provide a highly informative **Kickstart Guide** (`kickstart_guide.ipynb`) that walks you through an end-to-end real-world workflow using all 6 QuDET modules on a wine quality dataset.
89
+
90
+ ## Development Setup
91
+
92
+ ```bash
93
+ git clone https://github.com/satwiksps/qudet-dev.git
94
+ cd qudet-dev
95
+ python -m venv .venv
96
+
97
+ # Linux/macOS
98
+ source .venv/bin/activate
99
+
100
+ # Windows
101
+ .venv\Scripts\activate
102
+
103
+ pip install -e ".[dev]"
104
+ ```
105
+
106
+ ## Feedback and Contributions
107
+
108
+ We welcome any feedback on how `QuDET` is working and are happy to receive bug reports, pull requests, and other feedback:
109
+
110
+ Contributions are welcome! Please:
111
+
112
+ 1. Fork the repository
113
+ 2. Create a feature branch (`git checkout -b feature/my-feature`)
114
+ 3. Write tests for your changes
115
+ 4. Ensure all tests pass (`pytest`)
116
+ 5. Format code (`black .` and `ruff check .`)
117
+ 6. Submit a pull request
118
+
119
+ ## Testing
120
+
121
+ ```bash
122
+ # Run all tests
123
+ pytest
124
+
125
+ # Run with coverage
126
+ pytest --cov=qudet --cov-report=term-missing
127
+
128
+ # Run specific module tests
129
+ pytest tests/test_encoders/ -v
130
+
131
+ # Run only fast tests
132
+ pytest -m "not slow"
133
+ ```
134
+
135
+
136
+ ## License
137
+
138
+ Distributed under the **Apache 2.0 License**. See [LICENSE](LICENSE) for details.
@@ -0,0 +1,92 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "qudet"
7
+ version = "1.0.0"
8
+ description = "Quantum Data Engineering Toolkit — A modular Python framework for quantum-enhanced data pipelines."
9
+ readme = "README.md"
10
+ license = {text = "Apache-2.0"}
11
+ requires-python = ">=3.10"
12
+ authors = [
13
+ {name = "Satwik Sai Prakash Sahoo", email = "sahoospsatwik@gmail.com"},
14
+ ]
15
+ keywords = [
16
+ "quantum", "quantum-computing", "quantum-machine-learning",
17
+ "data-engineering", "qiskit", "mlops",
18
+ ]
19
+ classifiers = [
20
+ "Development Status :: 4 - Beta",
21
+ "Intended Audience :: Developers",
22
+ "Intended Audience :: Science/Research",
23
+ "License :: OSI Approved :: Apache Software License",
24
+ "Operating System :: OS Independent",
25
+ "Programming Language :: Python :: 3",
26
+ "Programming Language :: Python :: 3.10",
27
+ "Programming Language :: Python :: 3.11",
28
+ "Programming Language :: Python :: 3.12",
29
+ "Programming Language :: Python :: 3.13",
30
+ "Topic :: Scientific/Engineering",
31
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
32
+ "Topic :: Scientific/Engineering :: Physics",
33
+ "Typing :: Typed",
34
+ ]
35
+ dependencies = [
36
+ "numpy>=1.24,<3",
37
+ "pandas>=2.0",
38
+ "scipy>=1.10",
39
+ "scikit-learn>=1.3",
40
+ "qiskit>=1.0",
41
+ "qiskit-aer>=0.13",
42
+ ]
43
+
44
+ [project.optional-dependencies]
45
+ parquet = ["pyarrow>=14.0"]
46
+ sql = ["sqlalchemy>=2.0"]
47
+ crypto = ["cryptography>=41.0"]
48
+ distributed = ["dask[distributed]>=2024.1"]
49
+ visualization = ["matplotlib>=3.7", "seaborn>=0.13"]
50
+ ibm = ["qiskit-ibm-runtime>=0.20"]
51
+ dev = [
52
+ "pytest>=8.0",
53
+ "pytest-cov>=4.1",
54
+ "black>=24.0",
55
+ "ruff>=0.3",
56
+ "build",
57
+ "twine",
58
+ ]
59
+ all = ["qudet[parquet,sql,crypto,distributed,visualization,ibm,dev]"]
60
+
61
+ [project.urls]
62
+ Homepage = "https://github.com/satwiksps/qudet-dev"
63
+ Documentation = "https://github.com/satwiksps/qudet-dev#readme"
64
+ Repository = "https://github.com/satwiksps/qudet-dev"
65
+ Issues = "https://github.com/satwiksps/qudet-dev/issues"
66
+ Changelog = "https://github.com/satwiksps/qudet-dev/blob/main/CHANGELOG.md"
67
+
68
+ [tool.setuptools.packages.find]
69
+ include = ["qudet*"]
70
+
71
+ [tool.setuptools.package-data]
72
+ qudet = ["datasets/*.csv"]
73
+
74
+ [tool.pytest.ini_options]
75
+ testpaths = ["tests"]
76
+ addopts = "-v --tb=short -x"
77
+ markers = [
78
+ "slow: marks tests as slow",
79
+ "integration: marks integration tests",
80
+ ]
81
+
82
+ [tool.black]
83
+ line-length = 100
84
+ target-version = ["py310"]
85
+
86
+ [tool.ruff]
87
+ line-length = 100
88
+ target-version = "py310"
89
+
90
+ [tool.ruff.lint]
91
+ select = ["E", "F", "W", "I"]
92
+ ignore = ["E501"]