Repository navigation
Expand file tree
/
Copy pathschema-patched.yaml
More file actions
3815 lines (3628 loc) · 116 KB
/
Copy pathschema-patched.yaml
File metadata and controls
3815 lines (3628 loc) · 116 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
components:
parameters:
accountIdHeader:
description: 'Used to specify a subject account ID for a request.
Does not take precedence over a corresponding request body field when one
is present.
'
in: header
name: x-qcs-account-id
schema:
$ref: '#/components/schemas/AccountId'
accountTypeHeader:
description: 'Used to specify the subject account''s type for a request
in conjunction with the X-QCS-ACCOUNT-ID header.
Does not take precedence over a corresponding request body field when one
is present.
'
in: header
name: x-qcs-account-type
schema:
allOf:
- $ref: '#/components/schemas/AccountType'
filterParam:
in: query
name: filter
schema:
$ref: '#/components/schemas/Filter'
orderParam:
in: query
name: order
required: false
schema:
$ref: '#/components/schemas/Order'
pageSizeParam:
in: query
name: pageSize
required: false
schema:
format: int64
type: integer
pageTokenParam:
description: An opaque token that can be appended to a request query to retrieve
the next page of results. Empty if there are no more results to retrieve.
in: query
name: pageToken
required: false
schema:
type: string
showDeleted:
description: If you wish to include deleted (or cancelled) resources in your
response, include `showDeleted=true`.
in: query
name: showDeleted
required: false
schema:
default: 'false'
enum:
- 'true'
- 'false'
type: string
schemas:
AccountBalance:
description: Balance of QCS account in billing system. Note, a negative balance
signifies that the account has QCS credits to spend. A positive account balance
signifies that the account has no additional QCS credits to spend. The QCS
UI may display these quantities in absolute or negative value and provide
a clear meaning to the significance.
properties:
balance:
description: The balance in cents USD.
format: int64
type: integer
required:
- balance
type: object
AccountId:
description: userId for `accountType` "user", group name for `accountType` "group".
type: string
AccountType:
default: user
description: 'There are two types of accounts within QCS: user (representing
a single user in Okta) and group (representing one or more users in Okta).'
enum:
- group
- user
type: string
ActivateUserRequest:
properties:
credentials:
$ref: '#/components/schemas/UserCredentials'
profile:
$ref: '#/components/schemas/UserProfile'
token:
description: Verification token provided in invitation email.
type: string
required:
- profile
- credentials
- token
type: object
AddGroupUserRequest:
description: Must provide either `userId` or `userEmail` and `groupId` or `groupName`.
properties:
groupId:
type: string
groupName:
type: string
userEmail:
type: string
userId:
type: string
type: object
Announcement:
description: An announcement to be displayed to users.
properties:
active:
description: Whether the announcement is currently active.
type: boolean
contentHtml:
description: The HTML content of the announcement to be displayed.
type: string
createdAt:
description: The RFC3339-format time the announcement was created.
format: date-time
type: string
id:
format: int64
type: integer
required:
- id
- contentHtml
- createdAt
- active
AnnouncementsResponse:
description: A page of announcements.
properties:
announcements:
items:
$ref: '#/components/schemas/Announcement'
type: array
nextPageToken:
type: string
required:
- announcements
Architecture:
description: 'Represents the logical underlying architecture of a quantum processor.
The architecture is defined in detail by the nodes and edges that constitute
the quantum
processor. This defines the set of all nodes that could be operated upon,
and indicates to
some approximation their physical layout. The main purpose of this is to support
geometry
calculations that are independent of the available operations, and rendering
ISA-based
information. Architecture layouts are defined by the `family`, as follows.
The "Aspen" family of quantum processor indicates a 2D planar grid layout
of octagon unit
cells. The `node_id` in this architecture is computed as `100 p_y + 10 p_x
+ p_u` where
`p_y` is the zero-based Y position in the unit cell grid, `p_x` is the zero-based
X position in the unit cell grid, and `p_u` is the zero-based position in
the octagon
unit cell and always ranges from 0 to 7. This scheme has a natural size limit
of a 10x10
unit cell grid, which permits the architecture to scale up to 800 nodes.
Note that the operations that are actually available are defined entirely
by `Operation`
instances. The presence of a node or edge in the `Architecture` model provides
no guarantee
that any 1Q or 2Q operation will be available to users writing QUIL programs.'
properties:
edges:
description: A list of all computational edges in the instruction set architecture.
items:
$ref: '#/components/schemas/Edge'
type: array
uniqueItems: true
family:
allOf:
- $ref: '#/components/schemas/Family'
- description: The architecture family. The nodes and edges conform to this
family.
description: The architecture family. The nodes and edges conform to this
family.
nodes:
description: A list of all computational nodes in the instruction set architecture.
items:
$ref: '#/components/schemas/Node'
type: array
uniqueItems: true
required:
- family
- nodes
- edges
title: Architecture
type: object
AuthEmailPasswordResetTokenRequest:
properties:
email:
type: string
required:
- email
type: object
AuthResetPasswordRequest:
properties:
newPassword:
type: string
oldPassword:
type: string
required:
- oldPassword
- newPassword
type: object
AuthResetPasswordWithTokenRequest:
description: Token may be requested with AuthEmailPasswordResetToken.
properties:
newPassword:
type: string
token:
type: string
required:
- token
- newPassword
type: object
AvailableReservation:
properties:
duration:
type: string
endTime:
format: date-time
type: string
price:
format: int64
type: integer
quantumProcessorId:
type: string
startTime:
format: date-time
type: string
required:
- quantumProcessorId
- startTime
- endTime
- duration
- price
type: object
BillingCustomer:
description: Billing account information of a particular QCS account.
properties:
email:
type: string
id:
type: string
required:
- id
- email
title: Billing Customer
type: object
BillingInvoice:
allOf:
- $ref: '#/components/schemas/BillingUpcomingInvoice'
- description: A finalized invoice for the current invoice period.
properties:
id:
type: string
required:
- id
- periodEnd
- periodStart
- startingBalance
- status
- subtotal
- tax
- total
type: object
description: A finalized billing invoice.
type: object
BillingInvoiceLine:
description: A line item on an invoice representing a particular purchase (such
as a reservation) or aggregate usage for the invoice period.
properties:
amount:
format: int64
type: integer
description:
type: string
id:
type: string
invoiceItem:
type: string
lineItemType:
enum:
- invoiceitem
- subscription
type: string
metadata:
additionalProperties:
type: string
type: object
price:
$ref: '#/components/schemas/BillingPrice'
quantity:
format: int64
type: integer
subscription:
type: string
subscriptionItem:
type: string
required:
- id
- description
- amount
- quantity
- lineItemType
- metadata
type: object
BillingInvoiceStatus:
enum:
- draft
- open
- paid
- uncollectible
- void
type: string
BillingPrice:
description: 'A configuration for calculating the cost of `BillingProduct` usage
based on quantity,
and when that cost should be added as an invoice item.
'
properties:
active:
description: Whether the price can be used for new purchases.
type: boolean
billingScheme:
$ref: '#/components/schemas/BillingPriceScheme'
id:
description: Unique identifier for the object.
maxLength: 5000
type: string
object:
description: This object's type, which is always `price`.
enum:
- price
type: string
priceType:
description: 'Use `one_time` to invoice immediately based on a single usage
report, e.g. purchasing a QPU reservation.
Use `recurring` to aggregate usage reports over an interval and then invoice
once based on `BillingPriceRecurrence`, e.g. on-demand QPU usage.
'
enum:
- one_time
- recurring
type: string
product:
$ref: '#/components/schemas/BillingProduct'
recurring:
$ref: '#/components/schemas/BillingPriceRecurrence'
tiers:
description: 'Configure how price should be calculated based on quantity
when `billingScheme=tiered`.
Requires at least two tiers.
'
items:
$ref: '#/components/schemas/BillingPriceTier'
type: array
tiersMode:
$ref: '#/components/schemas/BillingPriceTiersMode'
unitAmountDecimal:
description: 'The amount of `currency` to charge per quantity used.
Requires that `billingScheme=per_unit`.
'
format: double
type: number
required:
- id
title: Billing Price
type: object
BillingPriceRecurrence:
description: 'How to invoice for the usage of a product that has a recurring
(subscription) price.
'
properties:
aggregateUsage:
description: 'How to determine the aggregate usage over the `interval` when
`usageType=metered`.
Using `sum` is recommended.
'
enum:
- last_during_period
- last_ever
- max
- sum
type: string
interval:
description: 'The frequency at which recurring usage should be billed.
Using `month` is recommended.
'
enum:
- day
- month
- week
- year
type: string
intervalCount:
description: 'The number of `interval` units between each billing cycle.
For example, `interval=month` and `intervalCount=1` means every month
(recommended).
'
format: int64
type: integer
usageType:
description: 'Use `metered` to calculate a dynamic quantity based on reported
usage records (recommended).
Use `licensed` when you provide a fixed quantity, e.g. a TV subscription.
'
enum:
- licensed
- metered
type: string
required:
- interval
title: Billing Price Recurrence
type: object
BillingPriceScheme:
description: 'Use `per_unit` to charge a linear rate per quantity (recommended).
Use `tiered` to charge a dynamic rate based on quantity as defined in the
`tiers` of a `BillingPice`.
'
enum:
- per_unit
- tiered
type: string
BillingPriceTier:
description: 'Use `flatAmount` to charge a fixed amount for the quantity relevant
to the tier.
Use `unitAmount` to charge a linear rate for the quantity relevant to the
tier.
Only one field between `flatAmount`, `flatAmountDecimal`, `unitAmount`, or
`unitAmountDecimal` should be set.
'
properties:
flatAmount:
format: int64
type: integer
flatAmountDecimal:
format: double
type: number
unitAmount:
format: int64
type: integer
unitAmountDecimal:
format: double
type: number
upTo:
description: 'The upper bound of product quantity relevant to this tier.
The highest tier should be open ended, represented by an `upTo` value
of `-1`.
'
format: int64
type: integer
required:
- upTo
title: tier
type: object
BillingPriceTiersMode:
description: 'Use `graduated` to apply each tier calculation to the portion
of relevant quantity, e.g. how US federal tax brackets work.
Use `volume` to apply the highest relevant tier to the entire quantity.
'
enum:
- graduated
- volume
type: string
BillingProduct:
description: 'A QCS service product, such as reservation time or on-demand execution.
One product can be associated with multiple prices, which may be associated
to particular resources or customers.
'
properties:
description:
maxLength: 5000
type: string
id:
description: Unique identifier for the object.
maxLength: 5000
type: string
name:
description: This name will show up on associated invoice line item descriptions.
maxLength: 5000
type: string
object:
description: This object's type, which is always `product`.
enum:
- product
type: string
x-enum-varnames:
- productObject
unitLabel:
description: 'A label for units of this product which appears on customer
invoices, e.g. "microseconds" for on-demand execution or "minutes" for
qpu reservations.
'
maxLength: 5000
type: string
required:
- id
- name
- object
title: Billing Product
type: object
BillingUpcomingInvoice:
description: An unfinalized billing invoice.
properties:
periodEnd:
format: date-time
type: string
periodStart:
format: date-time
type: string
startingBalance:
format: int64
type: integer
status:
$ref: '#/components/schemas/BillingInvoiceStatus'
subtotal:
format: int64
type: integer
tax:
format: int64
type: integer
total:
format: int64
type: integer
required:
- periodEnd
- periodStart
- startingBalance
- status
- subtotal
- tax
- total
type: object
Characteristic:
description: A measured characteristic of an operation.
properties:
error:
description: The error in the characteristic value, or None otherwise.
format: double
type: number
name:
description: The name of the characteristic.
title: The format of a name (an identifier).
type: string
node_ids:
description: 'The list of architecture node ids for the site where the characteristic
is
measured, if that is different from the site of the enclosing operation.
None if it is the same. The order of this or the enclosing node ids obey
the definition of node symmetry from the enclosing operation.'
items:
format: int64
title: A node integer identifier; must be greater than or equal to zero.
type: integer
minItems: 1
type: array
uniqueItems: true
parameter_values:
description: 'The optional ordered list of parameter values used to generate
the
characteristic. The order matches the parameters in the enclosing operation,
and so the lengths of these two lists must match.'
items:
format: double
type: number
type: array
timestamp:
description: The date and time at which the characteristic was measured.
format: date-time
type: string
value:
description: The characteristic value measured.
format: double
type: number
required:
- name
- value
- timestamp
title: Characteristic
type: object
CheckClientApplicationRequest:
properties:
name:
description: Name of component
type: string
version:
description: Semantic version of component.
type: string
required:
- name
- version
type: object
CheckClientApplicationResponse:
properties:
isLatestVersion:
type: boolean
isUpdateRequired:
description: Set to true if component is not at latest version.
type: boolean
message:
type: string
required:
- isLatestVersion
- isUpdateRequired
- message
type: object
ChecksumDescription:
properties:
headerName:
type: string
type:
enum:
- md5
type: string
required:
- headerName
- type
type: object
ClientApplication:
properties:
detailsUri:
type: string
latestVersion:
description: Semantic version
type: string
links:
items:
$ref: '#/components/schemas/ClientApplicationsDownloadLink'
type: array
minimumVersion:
description: Semantic version
type: string
name:
type: string
supported:
type: boolean
required:
- latestVersion
- name
- supported
type: object
ClientApplicationsDownloadLink:
properties:
checksumDescription:
$ref: '#/components/schemas/ChecksumDescription'
platform:
type: string
url:
type: string
required:
- url
type: object
Code:
description: API error codes to indicate what kind of error occurred beyond
what an HTTP status can convey.
enum:
- conflicting_resource_access
- resource_exists
- access_forbidden
- internal_error
- invalid_request
- invalid_token
- resource_not_found
- under_load
- unauthenticated
- unimplemented
type: string
CreateEndpointParameters:
description: A publicly available set of parameters for defining an endpoint.
properties:
datacenters:
description: Which datacenters are available for endpoint placement. Defaults
to berkeley-775
items:
$ref: '#/components/schemas/NomadJobDatacenters'
title: Datacenters
type: array
quantumProcessorIds:
description: Public identifiers for quantum processors served by this endpoint.
items:
type: string
title: Quantum Processor IDs
type: array
title: CreateEndpointParameters
type: object
CreateEngagementRequest:
properties:
accountId:
description: Either the client's user ID or the name of a group on behalf
of which the client wishes to engage. This value will override any values
set in the headers.
title: Account Id
type: string
accountType:
allOf:
- $ref: '#/components/schemas/AccountType'
description: Indicates whether the engagement request should be made for
the user or on behalf of a group. This value will override any values
set in the headers.
title: Account Type
endpointId:
description: Unique, opaque identifier for the endpoint
title: Endpoint ID
type: string
quantumProcessorId:
description: 'Public identifier for a quantum processor [example: Aspen-1]'
title: Quantum Processor ID
type: string
tags:
description: Tags recorded on QPU requests, which reporting services may
later use for querying usage records.
items:
type: string
title: Tags
type: array
title: CreateEngagementRequest
type: object
CreateReservationRequest:
properties:
accountId:
$ref: '#/components/schemas/AccountId'
accountType:
$ref: '#/components/schemas/AccountType'
endTime:
format: date-time
type: string
notes:
type: string
quantumProcessorId:
type: string
startTime:
format: date-time
type: string
required:
- quantumProcessorId
- startTime
- endTime
type: object
Edge:
description: 'A degree-two logical connection in the quantum processor''s architecture.
The existence of an edge in the ISA `Architecture` does not necessarily mean
that a given 2Q
operation will be available on the edge. This information is conveyed by the
presence of the
two `node_id` values in instances of `Instruction`.
Note that edges are undirected in this model. Thus edge `(a, b)` is equivalent
to edge
`(b, a)`.'
properties:
node_ids:
description: 'The integer ids of the computational nodes at the two ends
of the edge.
Order is not important; an architecture edge is treated as undirected.'
items:
format: int64
title: A node integer identifier; must be greater than or equal to zero.
type: integer
maxItems: 2
minItems: 2
type: array
required:
- node_ids
title: Edge
type: object
Endpoint:
description: An Endpoint is the v1 entry point for remote access to a `QuantumProcessor`.
properties:
address:
type: string
addresses:
$ref: '#/components/schemas/EndpointAddresses'
datacenter:
type: string
healthy:
type: boolean
id:
type: string
mock:
type: boolean
quantumProcessorIds:
items:
type: string
type: array
required:
- addresses
- healthy
- id
- mock
- quantumProcessorIds
title: Endpoint
type: object
EndpointAddresses:
description: Addresses at which an endpoint is reachable over the network.
properties:
grpc:
type: string
rpcq:
type: string
title: EndpointAddresses
type: object
EngagementCredentials:
description: 'Credentials are the ZeroMQ CURVE Keys used to encrypt the connection
with the Quantum Processor
Endpoint.'
properties:
clientPublic:
title: Client Public Key
type: string
clientSecret:
title: Client Secret Key
type: string
serverPublic:
title: Server Public Key
type: string
required:
- clientPublic
- clientSecret
- serverPublic
title: EngagementCredentials
type: object
EngagementWithCredentials:
description: An engagement is the authorization of a user to execute work on
a Quantum Processor Endpoint.
properties:
accountId:
description: User ID or group name on behalf of which the engagement is
made.
title: Account Id
type: string
accountType:
allOf:
- $ref: '#/components/schemas/AccountType'
description: Indicates whether the grant was made on behalf of a single
user or group.
title: Account Type
address:
description: The network address of the endpoint to which this engagement
grants access
title: Address
type: string
credentials:
$ref: '#/components/schemas/EngagementCredentials'
endpointId:
description: The ID of the endpoint to which this engagement grants access
title: Endpoint ID
type: string
expiresAt:
description: Time after which the engagement is no longer valid. Given in
RFC3339 format.
title: Expiration Time
type: string
minimumPriority:
description: The minimum priority value allowed for execution
format: int64
title: Minimum Priority
type: integer
quantumProcessorIds:
default: []
description: The quantum processors for which this engagement enables access
and execution
items:
type: string
title: Quantum Processor IDs
type: array
tags:
description: Tags recorded on QPU requests and recorded on usage records.
items:
type: string
title: Tags
type: array
userId:
title: User ID of client
type: string
required:
- address
- endpointId
- expiresAt
- userId
- credentials
title: EngagementWithCredentials
type: object
Error:
properties:
code:
title: Code
type: string
message:
title: Message
type: string
requestId:
title: Request ID
type: string
validationErrors:
items:
$ref: '#/components/schemas/ValidationError'
title: Validation Errors
type: array
required:
- code
- message
- requestId
title: Error
type: object
EventBillingPriceRate:
description: 'The per-unit price associated with a particular QCS service product,