File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 3333 - name : Get version
3434 id : version
3535 run : |
36- version=$(python -m setuptools_scm )
36+ version=$(sed -n 's/^ *version.*=.*"\([^"]*\)".*/\1/p' pyproject.toml )
3737 echo "version=$version" >> $GITHUB_ENV
3838 echo "Version : $version"
3939
Original file line number Diff line number Diff line change 2323 - name : Get version from setup.py
2424 id : version
2525 run : |
26- version=$(python -m setuptools_scm )
26+ version=$(sed -n 's/^ *version.*=.*"\([^"]*\)".*/\1/p' pyproject.toml )
2727 echo "version=$version" >> $GITHUB_ENV
2828
2929 - name : Build package
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ description = "Scaleway provider implementation for Yardstiq"
99requires-python = " >=3.12"
1010
1111dependencies = [
12- " yardstiq>=0.1.0 " ,
12+ " yardstiq>=0.1.1 " ,
1313 " scaleway-qaas-client>=0.1.23" ,
14- " qami >=0.1.0 " ,
14+ " qio >=0.1.17 " ,
1515]
1616
1717[project .urls ]
Original file line number Diff line number Diff line change @@ -65,23 +65,25 @@ def run(
6565 if not isinstance (program , list ):
6666 program = [program ]
6767
68- computation_model_dict = QuantumComputationModel (
68+ computation_model_json = QuantumComputationModel (
6969 programs = program ,
7070 backend = None ,
7171 client = None ,
72- ).to_dict ()
72+ ).to_json_str ()
7373
74- computation_parameters_dict = QuantumComputationParameters (
74+ computation_parameters_json = QuantumComputationParameters (
7575 shots = shots ,
76- ).to_dict ()
76+ ).to_json_str ()
7777
78- model = self .__client .create_model (computation_model_dict )
78+ model = self .__client .create_model (computation_model_json )
7979
8080 if not model :
8181 raise RuntimeError ("Failed to push model data" )
8282
8383 job = self .__client .create_job (
84- self .__session_id , model_id = model .id , parameters = computation_parameters_dict
84+ self .__session_id ,
85+ model_id = model .id ,
86+ parameters = computation_parameters_json
8587 )
8688
8789 while job .status in ["waiting" , "running" ]:
@@ -120,7 +122,7 @@ def _extract_payload_from_response(
120122 else :
121123 raise RuntimeError ("Got result with empty data and url fields" )
122124
123- return QuantumProgramResult .from_json (result )
125+ return QuantumProgramResult .from_json_str (result )
124126
125127 @property
126128 def max_qubit_count (self ) -> int :
You can’t perform that action at this time.
0 commit comments