Skip to content

Commit

Permalink
Change run_id into job_id (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
klkl0808 authored Jul 19, 2024
1 parent b8dd566 commit 6c999d9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/request/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ The schemas for validation inherit from the **extended schema** and can be found

| Key | Type | Value |
| --- | --- | --- |
| `run_id` | `int` | Client defined identifier for the execution. |
| `job_id` | `int` | Client defined identifier for the execution. |
| `circuit` | `str` | Circuit description in cQASM language, see below for more information. |
| `include_raw_data` | `bool` | Whether or not to return all bitstrings in the order in which they were measured. |
| `number_of_shots` | `int` | Number of shots to be executed for the circuit. |
Expand All @@ -135,7 +135,7 @@ implementations of 2300 might impose different requirements. These will be descr
"session_id": "eb4fdc2c-755b-47d8-af76-bbca2dce554d",
"command": "execute",
"payload": {
"run_id": 1,
"job_id": 1,
"circuit": "version 1.0\n\nqubits 2",
"include_raw_data": true,
"number_of_shots": 4
Expand All @@ -148,7 +148,7 @@ implementations of 2300 might impose different requirements. These will be descr

| Key | Type | Value |
| --- | --- | --- |
| `run_id` | `int` | Client defined identifier for the execution. |
| `job_id` | `int` | Client defined identifier for the execution. |
| `results` | `dict[str, int]` | Mapping of measured bitstring (for a circuit with `n` measurements; `q[n]...q[0]`) to count of occurrences. Limited to `m` results. |
| `raw_data` | `list[str]` | A list of bitstrings (little endian notation; `q[n]...q[0]`) ordered by the shot in which it was measured. If `include_raw_data` is set to `false` the list is left empty. |

Expand All @@ -159,7 +159,7 @@ implementations of 2300 might impose different requirements. These will be descr
"session_id": "eb4fdc2c-755b-47d8-af76-bbca2dce554d",
"status": "success",
"payload": {
"run_id": 1,
"job_id": 1,
"results": {
"000": 3,
"001": 1
Expand Down
4 changes: 2 additions & 2 deletions schemas/execute/reply.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "The return value(s) of the executed command.",
"type": "object",
"properties": {
"run_id": {
"job_id": {
"description": "Client defined identifier for the execution.",
"type": "integer"
},
Expand Down Expand Up @@ -48,7 +48,7 @@
"properties": {
"payload": {
"required": [
"run_id",
"job_id",
"results",
"raw_data"
]
Expand Down
4 changes: 2 additions & 2 deletions schemas/execute/request.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"description": "Arguments for the function to be executed.",
"type": "object",
"properties": {
"run_id": {
"job_id": {
"description": "Client defined identifier for the execution.",
"type": "integer"
},
Expand All @@ -33,7 +33,7 @@
}
},
"required": [
"run_id",
"job_id",
"circuit",
"number_of_shots"
]
Expand Down
2 changes: 1 addition & 1 deletion tests/data/execute/reply.success.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"session_id": "eb4fdc2c-755b-47d8-af76-bbca2dce554d",
"status": "success",
"payload": {
"run_id": 1,
"job_id": 1,
"results": {
"000": 512,
"001": 512
Expand Down
2 changes: 1 addition & 1 deletion tests/data/execute/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"session_id": "eb4fdc2c-755b-47d8-af76-bbca2dce554d",
"command": "execute",
"payload": {
"run_id": 1,
"job_id": 1,
"circuit": "version 1.0\n\nqubits 2",
"include_raw_data": true,
"number_of_shots": 1024
Expand Down

0 comments on commit 6c999d9

Please sign in to comment.