qctrl-fire-opal-riken-commons 0.0.0__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.
- qctrl_fire_opal_riken_commons-0.0.0/PKG-INFO +41 -0
- qctrl_fire_opal_riken_commons-0.0.0/__init__.py +1 -0
- qctrl_fire_opal_riken_commons-0.0.0/options.py +43 -0
- qctrl_fire_opal_riken_commons-0.0.0/poetry.lock +1867 -0
- qctrl_fire_opal_riken_commons-0.0.0/protos/__init__.py +14 -0
- qctrl_fire_opal_riken_commons-0.0.0/protos/compute_service.proto +60 -0
- qctrl_fire_opal_riken_commons-0.0.0/protos/compute_service_pb2.py +48 -0
- qctrl_fire_opal_riken_commons-0.0.0/protos/compute_service_pb2.pyi +73 -0
- qctrl_fire_opal_riken_commons-0.0.0/protos/compute_service_pb2_grpc.py +189 -0
- qctrl_fire_opal_riken_commons-0.0.0/pyproject.toml +104 -0
- qctrl_fire_opal_riken_commons-0.0.0/serializers.py +190 -0
- qctrl_fire_opal_riken_commons-0.0.0/tests/test_serializers.py +78 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: qctrl-fire-opal-riken-commons
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Fire Opal RIKEN Commons
|
|
5
|
+
License: https://q-ctrl.com/terms
|
|
6
|
+
Keywords: black opal,boulder opal,fire opal,ironstone opal,nisq,open controls,q control,q ctrl,q-control,q-ctrl,qcontrol,qctrl,quantum,quantum algorithms,quantum circuits,quantum coding,quantum coding software,quantum computing,quantum control,quantum control software,quantum control theory,quantum engineering,quantum error correction,quantum firmware,quantum fundamentals,quantum navigation,quantum sensing,qubit,qudit,riken
|
|
7
|
+
Author: Q-CTRL
|
|
8
|
+
Author-email: support@q-ctrl.com
|
|
9
|
+
Maintainer: Q-CTRL
|
|
10
|
+
Maintainer-email: support@q-ctrl.com
|
|
11
|
+
Requires-Python: >=3.11,<3.13
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Education
|
|
16
|
+
Classifier: Intended Audience :: Science/Research
|
|
17
|
+
Classifier: License :: Other/Proprietary License
|
|
18
|
+
Classifier: Natural Language :: English
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
26
|
+
Classifier: Topic :: Software Development :: Embedded Systems
|
|
27
|
+
Classifier: Topic :: System :: Distributed Computing
|
|
28
|
+
Requires-Dist: grpcio (>=1.60.0,<2.0.0)
|
|
29
|
+
Requires-Dist: grpcio-tools (>=1.60.0,<2.0.0)
|
|
30
|
+
Requires-Dist: protobuf (>=5.26.0,<6.0.0)
|
|
31
|
+
Requires-Dist: protovalidate (>=0.7.0,<0.8.0)
|
|
32
|
+
Requires-Dist: qiskit-ibm-runtime (>=0.40.0,<0.41.0)
|
|
33
|
+
Requires-Dist: types-protobuf (<4.25.0.20240417)
|
|
34
|
+
Project-URL: Documentation, https://docs.q-ctrl.com
|
|
35
|
+
Project-URL: Facebook, https://www.facebook.com/qctrl
|
|
36
|
+
Project-URL: GitHub, https://github.com/qctrl
|
|
37
|
+
Project-URL: Homepage, https://q-ctrl.com
|
|
38
|
+
Project-URL: LinkedIn, https://www.linkedin.com/company/q-ctrl/
|
|
39
|
+
Project-URL: Source, https://github.com/qctrl/fire-opal-riken-client
|
|
40
|
+
Project-URL: X, https://x.com/qctrlHQ
|
|
41
|
+
Project-URL: YouTube, https://www.youtube.com/qctrl
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""RIKEN native shared protocol buffer definitions and schemas."""
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Custom types to be shared between Fire Opal client and server implementations."""
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from pydantic import BaseModel
|
|
6
|
+
from qiskit_ibm_runtime.options import SamplerOptions
|
|
7
|
+
from qiskit_ibm_runtime.options.utils import Unset
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FireOpalSamplerOptions(BaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Custom set of supported `SamplerOptions` for the Fire Opal Sampler.
|
|
13
|
+
|
|
14
|
+
Parameters
|
|
15
|
+
----------
|
|
16
|
+
default_shots : int, optional
|
|
17
|
+
The default number of shots to use if none are specified in the PUBs
|
|
18
|
+
or in the run method. If not provided, will default to 4096.
|
|
19
|
+
Defaults to None.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
default_shots: Optional[int] = None
|
|
23
|
+
|
|
24
|
+
@classmethod
|
|
25
|
+
def from_sampler_options(cls, options: SamplerOptions) -> "FireOpalSamplerOptions":
|
|
26
|
+
"""
|
|
27
|
+
Create a `FireOpalSamplerOptions` instance from a `SamplerOptions` instance.
|
|
28
|
+
|
|
29
|
+
Parameters
|
|
30
|
+
----------
|
|
31
|
+
options : SamplerOptions
|
|
32
|
+
The `SamplerOptions` instance to convert.
|
|
33
|
+
|
|
34
|
+
Returns
|
|
35
|
+
-------
|
|
36
|
+
FireOpalSamplerOptions
|
|
37
|
+
The corresponding `FireOpalSamplerOptions` instance.
|
|
38
|
+
"""
|
|
39
|
+
return FireOpalSamplerOptions(
|
|
40
|
+
default_shots=options.default_shots
|
|
41
|
+
if options.default_shots is not Unset
|
|
42
|
+
else None
|
|
43
|
+
)
|