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.
@@ -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.decomposition import PCA
4
4
 
5
5
  class Pca(Preprocessing):
@@ -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
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = """Diego García Vega, Fernando Álvaro Plou Llorente, Alejandro Leal Castaño"""
4
4
  __email__ = "garciavdiego@uniovi.es, ploufernando@uniovi.es, lealcalejandro@uniovi.es"
5
- __version__ = "3.0.0"
5
+ __version__ = "3.0.2"
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
- from sklearn.impute import SimpleImputer
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}, classifiers={Model.QSVM,Model.QNN},embeddings={Embedding.RX,Embedding.RY,Embedding.RZ},ansatzs={Ansatzs.HARDWARE_EFFICIENT},sequential=Sequential,backend=Backend.lightningQubit,cores=cores,threshold=22,epochs=5)
271
+ classifier = QuantumClassifier(nqubits={4})
275
272
 
276
273
  start = time()
277
274
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyqml
3
- Version: 3.0.0
3
+ Version: 3.0.2
4
4
  Summary: LazyQML benchmarking utility to test quantum machine learning models.
5
5
  Author-email: QHPC Group <qhpcgroup@gmail.com>
6
6
  License: MIT License
@@ -1,5 +1,5 @@
1
- lazyqml/__init__.py,sha256=AO5qs-YuLME2DjkZikanGaXV4iBUKGlyBKDEUtbeyIg,242
2
- lazyqml/lazyqml.py,sha256=7MD8Jy7t9gEFZ2BluRBu8W1c-pFb-Elm2s9uHAWteqI,14703
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=_Hd5cZWTuurmtiyBSK1TalmIIr9ZTEhxwo-DDNL5KRw,963
22
- lazyqml/Factories/Preprocessing/Sanitizer.py,sha256=OmBEvjzKbozwQ_4HrkwYjkRBtKag0zlAmEWvp8WG7Os,1109
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=YyCpVUDxe4RFXUvJFV4U-U1Cwl6wMPuzurJwYmpLnNw,818
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.0.dist-info/AUTHORS.rst,sha256=Y_bDRslOAz5wcAYrTAnjDlmlW-51LfVF0Xwf09TbW3Y,245
34
- lazyqml-3.0.0.dist-info/LICENSE,sha256=42X2ZTCkjjhUks41WOjPmwX8sbCfgf431zzdCne6gqE,1079
35
- lazyqml-3.0.0.dist-info/LICENSE copy,sha256=y9EYvUN_l9ZWDuiVcxHE1NWbfy_HR9Z-8G19719ynbQ,1077
36
- lazyqml-3.0.0.dist-info/METADATA,sha256=Kv_3g2Eb76x3PqbzsFM5r3vYvRvwdyQh9bDO3buCZDM,9615
37
- lazyqml-3.0.0.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
38
- lazyqml-3.0.0.dist-info/entry_points.txt,sha256=I0WR08yVIeXjSa8XBSGZ9SsZtM8uMvKwZOdU1qQajao,45
39
- lazyqml-3.0.0.dist-info/top_level.txt,sha256=x2ffpytT-NeXmC7YaZLSQNMLK0pLfUiRmGOqwNbyjZE,8
40
- lazyqml-3.0.0.dist-info/RECORD,,
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,,