Skip to content

Commit d57c58f

Browse files
committed
feat(client): add json format
1 parent 595f793 commit d57c58f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
# Scaleway Python client for Quantum as a Service
1+
# Python client for Scaleway's Quantum as a Service
22

33
This Python package is basically a HTTPX client based on Pydantic over the [Quantum as a Service API](https://www.scaleway.com/en/developers/api/qaas/).
44

55
This package is intented to be used from quantum circuit SDK such as Qiskit, Cirq, Perceval and so-on.
66

77
## Installation
88

9-
We encourage installing Scaleway provider via the pip tool (a Python package manager):
9+
We encourage installing this package via the pip tool (a Python package manager):
1010

1111
```bash
1212
pip install scaleway-qaas-client
1313
```
1414

1515
## Getting started
1616

17-
To use QaaS client, you need to have an access secret_key and a Scaleway's project_id
18-
17+
To use the client, you need to have an access secret_key and a Scaleway's project_id
1918

2019
```python
2120
from scaleway_qaas_client import QaaSClient
2221

2322
client = QaaSClient(
24-
project_id=os.environ["SCALEWAY_PROJECT_ID"],
25-
secret_key=os.environ["SCALEWAY_API_TOKEN"],
23+
project_id=os.environ["SCALEWAY_PROJECT_ID"], # Your project ID in UUID format
24+
secret_key=os.environ["SCALEWAY_SECRET_KEY"], # Your personal secret key in UUID format
2625
)
2726

2827
platforms = client.list_platforms(name="aer_simulation_pop_c16m128")

scaleway_qaas_client/job_payload/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
from dataclasses import dataclass
1514
from enum import Enum
1615
from typing import Dict, List
1716

17+
from dataclasses import dataclass
1818
from dataclasses_json import dataclass_json
1919

2020

@@ -23,6 +23,7 @@ class QaaSCircuitSerializationFormat(Enum):
2323
QASM_V1 = 1
2424
QASM_V2 = 2
2525
QASM_V3 = 3
26+
JSON = 4
2627

2728

2829
@dataclass_json

0 commit comments

Comments
 (0)