qlro 0.2.0__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.
- qlro/__init__.py +37 -0
- qlro/api.py +892 -0
- qlro/comparison/__init__.py +25 -0
- qlro/comparison/normalizer.py +240 -0
- qlro/comparison/serialize.py +175 -0
- qlro/comparison/suitability.py +156 -0
- qlro/data/metriq_snapshot.json +6543 -0
- qlro/environments.py +191 -0
- qlro/export/__init__.py +5 -0
- qlro/export/report.py +453 -0
- qlro/jupyter.py +123 -0
- qlro/public_api.py +480 -0
- qlro/recommendation/__init__.py +5 -0
- qlro/recommendation/engine.py +421 -0
- qlro/result_parser.py +245 -0
- qlro/runner/__init__.py +5 -0
- qlro/runner/circuits.py +113 -0
- qlro/runner/qiskit_runner.py +221 -0
- qlro/schemas/__init__.py +45 -0
- qlro/schemas/comparison.py +25 -0
- qlro/schemas/comparison_run.py +48 -0
- qlro/schemas/environment.py +101 -0
- qlro/schemas/evaluation.py +117 -0
- qlro/schemas/experiment.py +56 -0
- qlro/schemas/fingerprint.py +164 -0
- qlro/schemas/recommendation.py +51 -0
- qlro/schemas/workload.py +45 -0
- qlro/scoring/__init__.py +5 -0
- qlro/scoring/axes.py +159 -0
- qlro/scoring/composition.py +105 -0
- qlro/scoring/data_loader.py +178 -0
- qlro/scoring/physics.py +188 -0
- qlro/scoring/priors.py +80 -0
- qlro/scoring/wcpp.py +374 -0
- qlro/storage/__init__.py +5 -0
- qlro/storage/database.py +129 -0
- qlro-0.2.0.dist-info/METADATA +159 -0
- qlro-0.2.0.dist-info/RECORD +40 -0
- qlro-0.2.0.dist-info/WHEEL +5 -0
- qlro-0.2.0.dist-info/top_level.txt +1 -0
qlro/__init__.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""Qlro: the evaluation layer for quantum pilot decisions.
|
|
2
|
+
|
|
3
|
+
Primary use is as an importable library:
|
|
4
|
+
|
|
5
|
+
>>> from qiskit import QuantumCircuit
|
|
6
|
+
>>> import qlro
|
|
7
|
+
>>>
|
|
8
|
+
>>> qc = QuantumCircuit(4)
|
|
9
|
+
>>> qc.h(0); qc.cx(0, 1); qc.cx(1, 2); qc.cx(2, 3)
|
|
10
|
+
>>> qc.measure_all()
|
|
11
|
+
>>>
|
|
12
|
+
>>> result = qlro.recommend(qc, category="chemistry")
|
|
13
|
+
>>> result.primary
|
|
14
|
+
'H2-2'
|
|
15
|
+
>>> result # auto-renders in Jupyter
|
|
16
|
+
|
|
17
|
+
See WCPP_SPEC.md and ROADMAP.md at the repo root for the full framework
|
|
18
|
+
and product context.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
from qlro.public_api import (
|
|
22
|
+
CircuitInfo,
|
|
23
|
+
DeviceRanking,
|
|
24
|
+
Recommendation,
|
|
25
|
+
log_outcome,
|
|
26
|
+
recommend,
|
|
27
|
+
)
|
|
28
|
+
from qlro.scoring.priors import WorkloadCategory
|
|
29
|
+
|
|
30
|
+
__all__ = [
|
|
31
|
+
"recommend",
|
|
32
|
+
"log_outcome",
|
|
33
|
+
"Recommendation",
|
|
34
|
+
"DeviceRanking",
|
|
35
|
+
"CircuitInfo",
|
|
36
|
+
"WorkloadCategory",
|
|
37
|
+
]
|