QuantaSight 0.1.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.
Quantra/__init__.py ADDED
@@ -0,0 +1,38 @@
1
+ """
2
+ Quantra
3
+ =======
4
+
5
+ Public Python interface for the Quantra quantum error-correction and
6
+ contextual reference-projection framework.
7
+
8
+ Typical usage
9
+ -------------
10
+
11
+ import Quantra
12
+
13
+ quantra = Quantra.Quantra(
14
+ circuit,
15
+ device="cpu",
16
+ shots=1,
17
+ )
18
+
19
+ result = quantra.run()
20
+ """
21
+
22
+ from quantra import (
23
+ Quantra,
24
+ QuantraError,
25
+ UnsupportedMeasurementSemanticsError,
26
+ MeasurementReferenceMismatchError,
27
+ )
28
+
29
+
30
+ __all__ = [
31
+ "Quantra",
32
+ "QuantraError",
33
+ "UnsupportedMeasurementSemanticsError",
34
+ "MeasurementReferenceMismatchError",
35
+ ]
36
+
37
+
38
+ __version__ = "0.1.0"
adapter/__init__.py ADDED
@@ -0,0 +1,66 @@
1
+ from .capabilities import (
2
+ BackendCapability,
3
+ ExecutionCapabilities,
4
+ ExecutionCapabilityError,
5
+ ExecutionKind,
6
+ ExecutionRequest,
7
+ ExecutionTarget,
8
+ detect_execution_capabilities,
9
+ resolve_execution_target,
10
+ )
11
+
12
+ from .detector import (
13
+ FrameworkDetectionError,
14
+ FrameworkInfo,
15
+ FrameworkNotInstalledError,
16
+ SUPPORTED_FRAMEWORKS,
17
+ detect_framework,
18
+ get_package_version,
19
+ is_framework_installed,
20
+ module_available,
21
+ scan_environment,
22
+ )
23
+
24
+ from .introspection import (
25
+ CircuitIntrospectionError,
26
+ CircuitMetadata,
27
+ inspect_circuit,
28
+ )
29
+
30
+ from .universal import (
31
+ AdapterState,
32
+ UniversalAdapter,
33
+ )
34
+
35
+
36
+ __all__ = [
37
+ # Universal adapter
38
+ "AdapterState",
39
+ "UniversalAdapter",
40
+
41
+ # Framework detection
42
+ "FrameworkDetectionError",
43
+ "FrameworkInfo",
44
+ "FrameworkNotInstalledError",
45
+ "SUPPORTED_FRAMEWORKS",
46
+ "detect_framework",
47
+ "get_package_version",
48
+ "is_framework_installed",
49
+ "module_available",
50
+ "scan_environment",
51
+
52
+ # Circuit introspection
53
+ "CircuitIntrospectionError",
54
+ "CircuitMetadata",
55
+ "inspect_circuit",
56
+
57
+ # Execution capabilities
58
+ "BackendCapability",
59
+ "ExecutionCapabilities",
60
+ "ExecutionCapabilityError",
61
+ "ExecutionKind",
62
+ "ExecutionRequest",
63
+ "ExecutionTarget",
64
+ "detect_execution_capabilities",
65
+ "resolve_execution_target",
66
+ ]