File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
scaleway_qaas_client/v1alpha1/job_payload Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414from dataclasses import dataclass
1515from enum import Enum
16- from typing import Dict , List
16+ from typing import Dict , List , Optional
1717
1818from dataclasses_json import dataclass_json
1919
@@ -33,6 +33,18 @@ class QaaSCircuitData:
3333 circuit_serialization : str
3434
3535
36+ class QaaSNoiseModelSerializationFormat (Enum ):
37+ UNKOWN_CIRCUIT_SERIALIZATION = 0
38+ JSON = 1
39+
40+
41+ @dataclass_json
42+ @dataclass
43+ class QaaSNoiseModelData :
44+ serialization_format : QaaSNoiseModelSerializationFormat
45+ noise_model_serialization : str
46+
47+
3648@dataclass_json
3749@dataclass
3850class QaaSJobRunData :
@@ -60,3 +72,4 @@ class QaaSJobData:
6072 client : QaaSJobClientData
6173 backend : QaaSJobBackendData
6274 run : QaaSJobRunData
75+ noise_model : Optional [QaaSNoiseModelData ]
You can’t perform that action at this time.
0 commit comments