Skip to content

Commit 56b92d5

Browse files
authored
feat(qaas): add new billing and qpu tech (scaleway#2526)
1 parent 4d87904 commit 56b92d5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

api/qaas/v1alpha1/qaas_sdk.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ const (
487487
PlatformAvailabilityAvailable = PlatformAvailability("available")
488488
PlatformAvailabilityShortage = PlatformAvailability("shortage")
489489
PlatformAvailabilityScarce = PlatformAvailability("scarce")
490+
PlatformAvailabilityMaintenance = PlatformAvailability("maintenance")
490491
)
491492

492493
func (enum PlatformAvailability) String() string {
@@ -503,6 +504,7 @@ func (enum PlatformAvailability) Values() []PlatformAvailability {
503504
"available",
504505
"shortage",
505506
"scarce",
507+
"maintenance",
506508
}
507509
}
508510

@@ -527,6 +529,8 @@ const (
527529
PlatformTechnologyUnknownTechnology = PlatformTechnology("unknown_technology")
528530
PlatformTechnologyPhotonic = PlatformTechnology("photonic")
529531
PlatformTechnologyGeneralPurpose = PlatformTechnology("general_purpose")
532+
PlatformTechnologyTrappedIon = PlatformTechnology("trapped_ion")
533+
PlatformTechnologySuperconducting = PlatformTechnology("superconducting")
530534
)
531535

532536
func (enum PlatformTechnology) String() string {
@@ -542,6 +546,8 @@ func (enum PlatformTechnology) Values() []PlatformTechnology {
542546
"unknown_technology",
543547
"photonic",
544548
"general_purpose",
549+
"trapped_ion",
550+
"superconducting",
545551
}
546552
}
547553

@@ -908,6 +914,12 @@ type Platform struct {
908914
// MaxQubitCount: estimated maximum number of qubits supported by the platform.
909915
MaxQubitCount uint32 `json:"max_qubit_count"`
910916

917+
// MaxShotCount: maximum number of shots during a circuit execution.
918+
MaxShotCount uint32 `json:"max_shot_count"`
919+
920+
// MaxCircuitCount: maximum number of circuit that can be executed in one call.
921+
MaxCircuitCount uint32 `json:"max_circuit_count"`
922+
911923
// Availability: availability of the platform.
912924
// Default value: unknown_availability
913925
Availability PlatformAvailability `json:"availability"`
@@ -918,6 +930,12 @@ type Platform struct {
918930
// PricePerHour: price to be paid per hour (excluding free tiers).
919931
PricePerHour *scw.Money `json:"price_per_hour"`
920932

933+
// PricePerShot: price to be paid per shot (excluding free tiers).
934+
PricePerShot *scw.Money `json:"price_per_shot"`
935+
936+
// PricePerCircuit: price to be paid per circuit setup before its execution (excluding free tiers).
937+
PricePerCircuit *scw.Money `json:"price_per_circuit"`
938+
921939
// Hardware: specifications of the underlying hardware.
922940
Hardware *PlatformHardware `json:"hardware"`
923941
}

0 commit comments

Comments
 (0)