Skip to content

Commit 4b2c11a

Browse files
feat(qaas): add new billing and qpu tech (#2030)
Co-authored-by: devtools-ci-cd <[email protected]>
1 parent 7929552 commit 4b2c11a

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

packages_generated/qaas/src/v1alpha1/marshalling.gen.ts

+8
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,20 @@ export const unmarshalPlatform = (data: unknown): Platform => {
116116
? unmarshalPlatformHardware(data.hardware)
117117
: undefined,
118118
id: data.id,
119+
maxCircuitCount: data.max_circuit_count,
119120
maxQubitCount: data.max_qubit_count,
121+
maxShotCount: data.max_shot_count,
120122
metadata: data.metadata,
121123
name: data.name,
124+
pricePerCircuit: data.price_per_circuit
125+
? unmarshalMoney(data.price_per_circuit)
126+
: undefined,
122127
pricePerHour: data.price_per_hour
123128
? unmarshalMoney(data.price_per_hour)
124129
: undefined,
130+
pricePerShot: data.price_per_shot
131+
? unmarshalMoney(data.price_per_shot)
132+
: undefined,
125133
providerName: data.provider_name,
126134
technology: data.technology,
127135
type: data.type,

packages_generated/qaas/src/v1alpha1/types.gen.ts

+19
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,14 @@ export type PlatformAvailability =
7676
| 'available'
7777
| 'shortage'
7878
| 'scarce'
79+
| 'maintenance'
7980

8081
export type PlatformTechnology =
8182
| 'unknown_technology'
8283
| 'photonic'
8384
| 'general_purpose'
85+
| 'trapped_ion'
86+
| 'superconducting'
8487

8588
export type PlatformType = 'unknown_type' | 'simulator' | 'qpu'
8689

@@ -276,6 +279,14 @@ export interface Platform {
276279
* Estimated maximum number of qubits supported by the platform.
277280
*/
278281
maxQubitCount: number
282+
/**
283+
* Maximum number of shots during a circuit execution.
284+
*/
285+
maxShotCount: number
286+
/**
287+
* Maximum number of circuit that can be executed in one call.
288+
*/
289+
maxCircuitCount: number
279290
/**
280291
* Availability of the platform.
281292
*/
@@ -288,6 +299,14 @@ export interface Platform {
288299
* Price to be paid per hour (excluding free tiers).
289300
*/
290301
pricePerHour?: Money
302+
/**
303+
* Price to be paid per shot (excluding free tiers).
304+
*/
305+
pricePerShot?: Money
306+
/**
307+
* Price to be paid per circuit setup before its execution (excluding free tiers).
308+
*/
309+
pricePerCircuit?: Money
291310
/**
292311
* Specifications of the underlying hardware.
293312
*/

0 commit comments

Comments
 (0)