lazyqml 3.0.0__py2.py3-none-any.whl → 3.0.2__py2.py3-none-any.whl
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.
- lazyqml/Factories/Preprocessing/Pca.py +1 -1
- lazyqml/Factories/Preprocessing/Sanitizer.py +1 -1
- lazyqml/Factories/Preprocessing/fPreprocessing.py +3 -3
- lazyqml/__init__.py +1 -1
- lazyqml/lazyqml.py +7 -10
- {lazyqml-3.0.0.dist-info → lazyqml-3.0.2.dist-info}/METADATA +1 -1
- {lazyqml-3.0.0.dist-info → lazyqml-3.0.2.dist-info}/RECORD +13 -13
- {lazyqml-3.0.0.dist-info → lazyqml-3.0.2.dist-info}/AUTHORS.rst +0 -0
- {lazyqml-3.0.0.dist-info → lazyqml-3.0.2.dist-info}/LICENSE +0 -0
- {lazyqml-3.0.0.dist-info → lazyqml-3.0.2.dist-info}/LICENSE copy +0 -0
- {lazyqml-3.0.0.dist-info → lazyqml-3.0.2.dist-info}/WHEEL +0 -0
- {lazyqml-3.0.0.dist-info → lazyqml-3.0.2.dist-info}/entry_points.txt +0 -0
- {lazyqml-3.0.0.dist-info → lazyqml-3.0.2.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Importing from
|
|
2
|
-
from Interfaces.iPreprocessing import Preprocessing
|
|
2
|
+
from lazyqml.Interfaces.iPreprocessing import Preprocessing
|
|
3
3
|
from sklearn.compose import ColumnTransformer
|
|
4
4
|
from sklearn.pipeline import Pipeline
|
|
5
5
|
from sklearn.preprocessing import StandardScaler
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Importing from
|
|
2
|
-
from Global.globalEnums import *
|
|
3
|
-
from Factories.Preprocessing.Pca import *
|
|
4
|
-
from Factories.Preprocessing.Sanitizer import *
|
|
2
|
+
from lazyqml.Global.globalEnums import *
|
|
3
|
+
from lazyqml.Factories.Preprocessing.Pca import *
|
|
4
|
+
from lazyqml.Factories.Preprocessing.Sanitizer import *
|
|
5
5
|
|
|
6
6
|
class PreprocessingFactory:
|
|
7
7
|
def __init__(self, nqubits) -> None:
|
lazyqml/__init__.py
CHANGED
lazyqml/lazyqml.py
CHANGED
|
@@ -2,20 +2,17 @@ import inspect
|
|
|
2
2
|
import warnings
|
|
3
3
|
import numpy as np
|
|
4
4
|
import pandas as pd
|
|
5
|
-
import sys
|
|
6
5
|
from tabulate import tabulate
|
|
7
6
|
from pydantic import BaseModel, Field, model_validator, field_validator, ValidationError, conset
|
|
8
7
|
from pydantic.config import ConfigDict
|
|
9
8
|
from typing import List, Callable, Optional, Set
|
|
10
9
|
from typing_extensions import Annotated, Set
|
|
11
|
-
from Factories.Preprocessing.fPreprocessing import PreprocessingFactory
|
|
12
|
-
from Global.globalEnums import *
|
|
13
|
-
from Utils.Utils import *
|
|
14
|
-
from Utils.Validator import *
|
|
15
|
-
from Factories.Dispatchers.Dispatcher import *
|
|
16
|
-
|
|
17
|
-
from ucimlrepo import fetch_ucirepo
|
|
18
|
-
from sklearn.preprocessing import LabelEncoder
|
|
10
|
+
from lazyqml.Factories.Preprocessing.fPreprocessing import PreprocessingFactory
|
|
11
|
+
from lazyqml.Global.globalEnums import *
|
|
12
|
+
from lazyqml.Utils.Utils import *
|
|
13
|
+
from lazyqml.Utils.Validator import *
|
|
14
|
+
from lazyqml.Factories.Dispatchers.Dispatcher import *
|
|
15
|
+
|
|
19
16
|
from time import time
|
|
20
17
|
|
|
21
18
|
class QuantumClassifier(BaseModel):
|
|
@@ -271,7 +268,7 @@ if __name__ == '__main__':
|
|
|
271
268
|
repeats = 2
|
|
272
269
|
embeddings = {Embedding.ZZ}
|
|
273
270
|
|
|
274
|
-
classifier = QuantumClassifier(nqubits={4}
|
|
271
|
+
classifier = QuantumClassifier(nqubits={4})
|
|
275
272
|
|
|
276
273
|
start = time()
|
|
277
274
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
lazyqml/__init__.py,sha256=
|
|
2
|
-
lazyqml/lazyqml.py,sha256=
|
|
1
|
+
lazyqml/__init__.py,sha256=KSxH_-0tIf1yCAmcdGNY99NQnXvtLoycjpHWdkvrj6w,242
|
|
2
|
+
lazyqml/lazyqml.py,sha256=zrKvufHWroOnHJeeytKqrZ3BsWliFRvwVzdcsV8I-cE,14397
|
|
3
3
|
lazyqml/Factories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
lazyqml/Factories/Circuits/AmplitudeEmbedding.py,sha256=P49rPc9aEK558yx8WYyzRGWfLuLCoJr_OjdOvWqDTbo,638
|
|
5
5
|
lazyqml/Factories/Circuits/HCzRx.py,sha256=VQ4bCJ7_iAJ5d2mSRbpLqbEV3U8azinvdX2oZnXoA1M,1157
|
|
@@ -18,10 +18,10 @@ lazyqml/Factories/Models/QNNTorch.py,sha256=mJsr2uGaQ8teEB3gsF5aUZ8j_IlJSdOZsdnv
|
|
|
18
18
|
lazyqml/Factories/Models/QSVM.py,sha256=Jc-PHL8yn7VBrXEt4i44jsbsQHKF-FgwXvSWWwutK_A,3225
|
|
19
19
|
lazyqml/Factories/Models/_QNNPennylane.py,sha256=cn7lSZ0tEps61xleIeI7oWyGxeotiwQc74dYVFe-rIc,3380
|
|
20
20
|
lazyqml/Factories/Models/fModels.py,sha256=5Nsx7UFH_De4f5pMvx0D2giUIgKgA4q29g7_NwLybxc,1342
|
|
21
|
-
lazyqml/Factories/Preprocessing/Pca.py,sha256=
|
|
22
|
-
lazyqml/Factories/Preprocessing/Sanitizer.py,sha256=
|
|
21
|
+
lazyqml/Factories/Preprocessing/Pca.py,sha256=4TmNOMw6XrZ68qqDiUsB1eQ9BHLKiD1sanfI-dGqWjE,971
|
|
22
|
+
lazyqml/Factories/Preprocessing/Sanitizer.py,sha256=8EoAfVZAGVpLD529vwqGTxAli7miPxW02pXb2IH5DE0,1117
|
|
23
23
|
lazyqml/Factories/Preprocessing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
lazyqml/Factories/Preprocessing/fPreprocessing.py,sha256=
|
|
24
|
+
lazyqml/Factories/Preprocessing/fPreprocessing.py,sha256=LPA4r0AFk67YbZVSAZTwTzC6oZ8P4tfpuDO8psnsTKQ,842
|
|
25
25
|
lazyqml/Global/globalEnums.py,sha256=Qc4Xep-LnubsxUvb8ZW5h-XZVjLRFXWfv040NXIt4HY,962
|
|
26
26
|
lazyqml/Interfaces/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
lazyqml/Interfaces/iAnsatz.py,sha256=HzHRRg7OqKOJAW-I-huDdxnFwaTZtP7953VmranOzC8,156
|
|
@@ -30,11 +30,11 @@ lazyqml/Interfaces/iModel.py,sha256=W_yYoZd7hS8ZKGvNAyl-waJ6f7F0kIM6zrg9WqyPt_I,
|
|
|
30
30
|
lazyqml/Interfaces/iPreprocessing.py,sha256=O9f2tCnWTbjkHi4_XKaPWsE2SWKsdI1pj2lCyBWih9o,255
|
|
31
31
|
lazyqml/Utils/Utils.py,sha256=0p9T0ObTTb5_GfIxKNhjufvn9tbgSs-NdEvDrfbwZsQ,10026
|
|
32
32
|
lazyqml/Utils/Validator.py,sha256=6Ox2A5WAV5GYPuFfB873mpEqCHSmhhSwFV_LGI-ZJ5s,4622
|
|
33
|
-
lazyqml-3.0.
|
|
34
|
-
lazyqml-3.0.
|
|
35
|
-
lazyqml-3.0.
|
|
36
|
-
lazyqml-3.0.
|
|
37
|
-
lazyqml-3.0.
|
|
38
|
-
lazyqml-3.0.
|
|
39
|
-
lazyqml-3.0.
|
|
40
|
-
lazyqml-3.0.
|
|
33
|
+
lazyqml-3.0.2.dist-info/AUTHORS.rst,sha256=Y_bDRslOAz5wcAYrTAnjDlmlW-51LfVF0Xwf09TbW3Y,245
|
|
34
|
+
lazyqml-3.0.2.dist-info/LICENSE,sha256=42X2ZTCkjjhUks41WOjPmwX8sbCfgf431zzdCne6gqE,1079
|
|
35
|
+
lazyqml-3.0.2.dist-info/LICENSE copy,sha256=y9EYvUN_l9ZWDuiVcxHE1NWbfy_HR9Z-8G19719ynbQ,1077
|
|
36
|
+
lazyqml-3.0.2.dist-info/METADATA,sha256=7Fob0ObhFkTfYarVzFzXiRDDaTpapZeaJO7EvnXR_w8,9615
|
|
37
|
+
lazyqml-3.0.2.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
|
|
38
|
+
lazyqml-3.0.2.dist-info/entry_points.txt,sha256=I0WR08yVIeXjSa8XBSGZ9SsZtM8uMvKwZOdU1qQajao,45
|
|
39
|
+
lazyqml-3.0.2.dist-info/top_level.txt,sha256=x2ffpytT-NeXmC7YaZLSQNMLK0pLfUiRmGOqwNbyjZE,8
|
|
40
|
+
lazyqml-3.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|