qex 0.1.1__tar.gz → 0.1.2__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.
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qex
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A lightweight experiment-runner and lab notebook for quantum computing
5
- Author: qlab contributors
5
+ Author: qex contributors
6
6
  License: Apache-2.0
7
- Project-URL: Homepage, https://github.com/AndreaPallotta/qlab
8
- Project-URL: Documentation, https://github.com/AndreaPallotta/qlab#readme
9
- Project-URL: Repository, https://github.com/AndreaPallotta/qlab
10
- Project-URL: Issues, https://github.com/AndreaPallotta/qlab/issues
7
+ Project-URL: Homepage, https://github.com/AndreaPallotta/qex
8
+ Project-URL: Documentation, https://github.com/AndreaPallotta/qex#readme
9
+ Project-URL: Repository, https://github.com/AndreaPallotta/qex
10
+ Project-URL: Issues, https://github.com/AndreaPallotta/qex/issues
11
11
  Keywords: quantum,quantum-computing,cirq,experiments,quantum-simulation,bloch-sphere
12
12
  Classifier: Development Status :: 3 - Alpha
13
13
  Classifier: Intended Audience :: Science/Research
@@ -30,17 +30,17 @@ Requires-Dist: black>=23.0.0; extra == "dev"
30
30
  Requires-Dist: ruff>=0.1.0; extra == "dev"
31
31
  Requires-Dist: mypy>=1.0.0; extra == "dev"
32
32
 
33
- # qlab
33
+ # qex
34
34
 
35
35
  <div align="center">
36
- <img src="https://raw.githubusercontent.com/AndreaPallotta/qlab/main/assets/logo.png" alt="qlab logo" width="200"/>
36
+ <img src="https://raw.githubusercontent.com/AndreaPallotta/qex/main/assets/logo.png" alt="qex logo" width="200"/>
37
37
  </div>
38
38
 
39
39
  A lightweight experiment-runner and lab notebook for quantum computing, built on top of Cirq.
40
40
 
41
41
  ## Overview
42
42
 
43
- `qlab` is designed for running quantum experiments, tracking results, and visualizing outcomes. It focuses on reproducibility, persistence, and visualization rather than being a general-purpose quantum framework.
43
+ `qex` is designed for running quantum experiments, tracking results, and visualizing outcomes. It focuses on reproducibility, persistence, and visualization rather than being a general-purpose quantum framework.
44
44
 
45
45
  **Key Features:**
46
46
  - 🧪 **Experiment Management**: Define parametric quantum circuits and run them systematically
@@ -58,14 +58,14 @@ pip install qex
58
58
  ## Quick Start
59
59
 
60
60
  ```python
61
- from qlab import CirqBackend, Runner, ResultStore
62
- from qlab.demos import hadamard_experiment
61
+ from qex import CirqBackend, Runner, ResultStore
62
+ from qex.demos import hadamard_experiment
63
63
  from pathlib import Path
64
64
 
65
65
  # Setup
66
66
  backend = CirqBackend()
67
67
  runner = Runner(backend)
68
- store = ResultStore(Path("qlab_data/qlab.db"))
68
+ store = ResultStore(Path("qex_data/qex.db"))
69
69
 
70
70
  # Run an experiment
71
71
  experiment = hadamard_experiment()
@@ -84,7 +84,7 @@ store.close()
84
84
 
85
85
  ## Built-in Experiments
86
86
 
87
- `qlab` includes three demo experiments for validation:
87
+ `qex` includes three demo experiments for validation:
88
88
 
89
89
  - **X Gate**: `|0⟩ → X → |1⟩` - Simple bit flip
90
90
  - **Hadamard**: `|0⟩ → H → superposition` - Creates equal superposition
@@ -1,14 +1,14 @@
1
- # qlab
1
+ # qex
2
2
 
3
3
  <div align="center">
4
- <img src="https://raw.githubusercontent.com/AndreaPallotta/qlab/main/assets/logo.png" alt="qlab logo" width="200"/>
4
+ <img src="https://raw.githubusercontent.com/AndreaPallotta/qex/main/assets/logo.png" alt="qex logo" width="200"/>
5
5
  </div>
6
6
 
7
7
  A lightweight experiment-runner and lab notebook for quantum computing, built on top of Cirq.
8
8
 
9
9
  ## Overview
10
10
 
11
- `qlab` is designed for running quantum experiments, tracking results, and visualizing outcomes. It focuses on reproducibility, persistence, and visualization rather than being a general-purpose quantum framework.
11
+ `qex` is designed for running quantum experiments, tracking results, and visualizing outcomes. It focuses on reproducibility, persistence, and visualization rather than being a general-purpose quantum framework.
12
12
 
13
13
  **Key Features:**
14
14
  - 🧪 **Experiment Management**: Define parametric quantum circuits and run them systematically
@@ -26,14 +26,14 @@ pip install qex
26
26
  ## Quick Start
27
27
 
28
28
  ```python
29
- from qlab import CirqBackend, Runner, ResultStore
30
- from qlab.demos import hadamard_experiment
29
+ from qex import CirqBackend, Runner, ResultStore
30
+ from qex.demos import hadamard_experiment
31
31
  from pathlib import Path
32
32
 
33
33
  # Setup
34
34
  backend = CirqBackend()
35
35
  runner = Runner(backend)
36
- store = ResultStore(Path("qlab_data/qlab.db"))
36
+ store = ResultStore(Path("qex_data/qex.db"))
37
37
 
38
38
  # Run an experiment
39
39
  experiment = hadamard_experiment()
@@ -52,7 +52,7 @@ store.close()
52
52
 
53
53
  ## Built-in Experiments
54
54
 
55
- `qlab` includes three demo experiments for validation:
55
+ `qex` includes three demo experiments for validation:
56
56
 
57
57
  - **X Gate**: `|0⟩ → X → |1⟩` - Simple bit flip
58
58
  - **Hadamard**: `|0⟩ → H → superposition` - Creates equal superposition
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qex"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "A lightweight experiment-runner and lab notebook for quantum computing"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
11
11
  license = {text = "Apache-2.0"}
12
12
  authors = [
13
- {name = "qlab contributors"}
13
+ {name = "qex contributors"}
14
14
  ]
15
15
  keywords = [
16
16
  "quantum",
@@ -47,13 +47,13 @@ dev = [
47
47
  ]
48
48
 
49
49
  [project.urls]
50
- Homepage = "https://github.com/AndreaPallotta/qlab"
51
- Documentation = "https://github.com/AndreaPallotta/qlab#readme"
52
- Repository = "https://github.com/AndreaPallotta/qlab"
53
- Issues = "https://github.com/AndreaPallotta/qlab/issues"
50
+ Homepage = "https://github.com/AndreaPallotta/qex"
51
+ Documentation = "https://github.com/AndreaPallotta/qex#readme"
52
+ Repository = "https://github.com/AndreaPallotta/qex"
53
+ Issues = "https://github.com/AndreaPallotta/qex/issues"
54
54
 
55
55
  [tool.setuptools]
56
- packages = ["qlab"]
56
+ packages = ["qex"]
57
57
 
58
58
  [tool.setuptools.package-data]
59
- qlab = ["py.typed"]
59
+ qex = ["py.typed"]
@@ -0,0 +1,41 @@
1
+ """
2
+ qex: A lightweight experiment-runner and lab notebook for quantum computing.
3
+
4
+ Built on top of Cirq, focused on experiments, runs, reproducibility, and visualization.
5
+ """
6
+
7
+ __version__ = "0.1.2"
8
+ __all__ = [
9
+ "Experiment",
10
+ "Backend",
11
+ "CirqBackend",
12
+ "Runner",
13
+ "ResultStore",
14
+ "RunRecord",
15
+ ]
16
+
17
+
18
+ def __getattr__(name: str):
19
+ """
20
+ Lazy import to avoid slow imports of heavy dependencies (cirq, numpy).
21
+ Heavy modules load only when specific classes are accessed.
22
+ """
23
+ if name == "Experiment":
24
+ from qex.experiment import Experiment
25
+ return Experiment
26
+ elif name == "Backend":
27
+ from qex.backend import Backend
28
+ return Backend
29
+ elif name == "CirqBackend":
30
+ from qex.backend import CirqBackend
31
+ return CirqBackend
32
+ elif name == "Runner":
33
+ from qex.runner import Runner
34
+ return Runner
35
+ elif name == "ResultStore":
36
+ from qex.store import ResultStore
37
+ return ResultStore
38
+ elif name == "RunRecord":
39
+ from qex.store import RunRecord
40
+ return RunRecord
41
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
@@ -4,7 +4,7 @@ Built-in demo experiments for validation.
4
4
 
5
5
  from typing import Dict, Any
6
6
  import cirq
7
- from qlab.experiment import Experiment
7
+ from qex.experiment import Experiment
8
8
 
9
9
 
10
10
  def x_gate_experiment() -> Experiment:
@@ -8,10 +8,10 @@ from typing import Dict, Any, Optional
8
8
  from pathlib import Path
9
9
  import cirq
10
10
  import numpy as np
11
- from qlab.experiment import Experiment
12
- from qlab.backend import Backend
13
- from qlab.store import RunRecord # type: ignore
14
- from qlab.bloch import density_matrix_to_bloch, bloch_to_html
11
+ from qex.experiment import Experiment
12
+ from qex.backend import Backend
13
+ from qex.store import RunRecord # type: ignore
14
+ from qex.bloch import density_matrix_to_bloch, bloch_to_html
15
15
 
16
16
 
17
17
  class Runner:
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qex
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A lightweight experiment-runner and lab notebook for quantum computing
5
- Author: qlab contributors
5
+ Author: qex contributors
6
6
  License: Apache-2.0
7
- Project-URL: Homepage, https://github.com/AndreaPallotta/qlab
8
- Project-URL: Documentation, https://github.com/AndreaPallotta/qlab#readme
9
- Project-URL: Repository, https://github.com/AndreaPallotta/qlab
10
- Project-URL: Issues, https://github.com/AndreaPallotta/qlab/issues
7
+ Project-URL: Homepage, https://github.com/AndreaPallotta/qex
8
+ Project-URL: Documentation, https://github.com/AndreaPallotta/qex#readme
9
+ Project-URL: Repository, https://github.com/AndreaPallotta/qex
10
+ Project-URL: Issues, https://github.com/AndreaPallotta/qex/issues
11
11
  Keywords: quantum,quantum-computing,cirq,experiments,quantum-simulation,bloch-sphere
12
12
  Classifier: Development Status :: 3 - Alpha
13
13
  Classifier: Intended Audience :: Science/Research
@@ -30,17 +30,17 @@ Requires-Dist: black>=23.0.0; extra == "dev"
30
30
  Requires-Dist: ruff>=0.1.0; extra == "dev"
31
31
  Requires-Dist: mypy>=1.0.0; extra == "dev"
32
32
 
33
- # qlab
33
+ # qex
34
34
 
35
35
  <div align="center">
36
- <img src="https://raw.githubusercontent.com/AndreaPallotta/qlab/main/assets/logo.png" alt="qlab logo" width="200"/>
36
+ <img src="https://raw.githubusercontent.com/AndreaPallotta/qex/main/assets/logo.png" alt="qex logo" width="200"/>
37
37
  </div>
38
38
 
39
39
  A lightweight experiment-runner and lab notebook for quantum computing, built on top of Cirq.
40
40
 
41
41
  ## Overview
42
42
 
43
- `qlab` is designed for running quantum experiments, tracking results, and visualizing outcomes. It focuses on reproducibility, persistence, and visualization rather than being a general-purpose quantum framework.
43
+ `qex` is designed for running quantum experiments, tracking results, and visualizing outcomes. It focuses on reproducibility, persistence, and visualization rather than being a general-purpose quantum framework.
44
44
 
45
45
  **Key Features:**
46
46
  - 🧪 **Experiment Management**: Define parametric quantum circuits and run them systematically
@@ -58,14 +58,14 @@ pip install qex
58
58
  ## Quick Start
59
59
 
60
60
  ```python
61
- from qlab import CirqBackend, Runner, ResultStore
62
- from qlab.demos import hadamard_experiment
61
+ from qex import CirqBackend, Runner, ResultStore
62
+ from qex.demos import hadamard_experiment
63
63
  from pathlib import Path
64
64
 
65
65
  # Setup
66
66
  backend = CirqBackend()
67
67
  runner = Runner(backend)
68
- store = ResultStore(Path("qlab_data/qlab.db"))
68
+ store = ResultStore(Path("qex_data/qex.db"))
69
69
 
70
70
  # Run an experiment
71
71
  experiment = hadamard_experiment()
@@ -84,7 +84,7 @@ store.close()
84
84
 
85
85
  ## Built-in Experiments
86
86
 
87
- `qlab` includes three demo experiments for validation:
87
+ `qex` includes three demo experiments for validation:
88
88
 
89
89
  - **X Gate**: `|0⟩ → X → |1⟩` - Simple bit flip
90
90
  - **Hadamard**: `|0⟩ → H → superposition` - Creates equal superposition
@@ -0,0 +1,15 @@
1
+ README.md
2
+ pyproject.toml
3
+ qex/__init__.py
4
+ qex/backend.py
5
+ qex/bloch.py
6
+ qex/demos.py
7
+ qex/experiment.py
8
+ qex/py.typed
9
+ qex/runner.py
10
+ qex/store.py
11
+ qex.egg-info/PKG-INFO
12
+ qex.egg-info/SOURCES.txt
13
+ qex.egg-info/dependency_links.txt
14
+ qex.egg-info/requires.txt
15
+ qex.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ qex
@@ -1,15 +0,0 @@
1
- README.md
2
- pyproject.toml
3
- qex.egg-info/PKG-INFO
4
- qex.egg-info/SOURCES.txt
5
- qex.egg-info/dependency_links.txt
6
- qex.egg-info/requires.txt
7
- qex.egg-info/top_level.txt
8
- qlab/__init__.py
9
- qlab/backend.py
10
- qlab/bloch.py
11
- qlab/demos.py
12
- qlab/experiment.py
13
- qlab/py.typed
14
- qlab/runner.py
15
- qlab/store.py
@@ -1 +0,0 @@
1
- qlab
@@ -1,20 +0,0 @@
1
- """
2
- qlab: A lightweight experiment-runner and lab notebook for quantum computing.
3
-
4
- Built on top of Cirq, focused on experiments, runs, reproducibility, and visualization.
5
- """
6
-
7
- from qlab.experiment import Experiment
8
- from qlab.backend import Backend, CirqBackend
9
- from qlab.runner import Runner
10
- from qlab.store import ResultStore, RunRecord
11
-
12
- __version__ = "0.1.0"
13
- __all__ = [
14
- "Experiment",
15
- "Backend",
16
- "CirqBackend",
17
- "Runner",
18
- "ResultStore",
19
- "RunRecord",
20
- ]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes