-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrigetti-reservation-schema.json
More file actions
58 lines (58 loc) · 2.03 KB
/
rigetti-reservation-schema.json
File metadata and controls
58 lines (58 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/rigetti/main/json-schema/rigetti-reservation-schema.json",
"title": "Rigetti QCS Reservation",
"description": "A time-boxed exclusive access window to a Rigetti quantum processor (QPU) granted to a user or group. Derived from the Rigetti QCS HTTP API reservation surface.",
"type": "object",
"required": ["id", "quantumProcessorId", "startTime", "endTime"],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the reservation."
},
"quantumProcessorId": {
"type": "string",
"description": "The QPU this reservation is scoped to (e.g. Aspen-M-3, Ankaa-2, Cepheus-1-108Q)."
},
"userId": {
"type": "string",
"description": "QCS user that owns the reservation. Mutually exclusive with groupName at the API level (one or the other)."
},
"groupName": {
"type": "string",
"description": "QCS group the reservation is billed against, if group-scoped."
},
"startTime": {
"type": "string",
"format": "date-time",
"description": "ISO-8601 start time."
},
"endTime": {
"type": "string",
"format": "date-time",
"description": "ISO-8601 end time."
},
"duration": {
"type": "string",
"description": "Duration of the reservation (e.g. PT30M). Computed server-side from start/end."
},
"status": {
"type": "string",
"enum": ["pending", "active", "cancelled", "completed"],
"description": "Reservation lifecycle status."
},
"createdTime": {
"type": "string",
"format": "date-time"
},
"price": {
"type": "object",
"description": "Reservation price reference; populated against the user/group's contract pricing.",
"properties": {
"currency": { "type": "string", "default": "USD" },
"amount": { "type": "string", "description": "Decimal price as string." }
}
}
},
"additionalProperties": true
}