topqad_sdk.models package
Subpackages
Submodules
topqad_sdk.models.common_types module
- class topqad_sdk.models.common_types.ErrorBudgets(*, global_: GlobalErrorBudget, unit: UnitErrorBudget)[source]
Bases:
BaseModel
Error budgets for global and unit errors.
- global_: GlobalErrorBudget
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- unit: UnitErrorBudget
- class topqad_sdk.models.common_types.GlobalErrorBudget(*, target_error_bound: str, num_repetitions: int)[source]
Bases:
BaseModel
Input error budget details.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- num_repetitions: int
- target_error_bound: str
- class topqad_sdk.models.common_types.InputErrorBudget(*, target_error_bound: str)[source]
Bases:
BaseModel
Input error budget details.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- target_error_bound: str
- class topqad_sdk.models.common_types.LogicalQubits(*, data: int | None = 0, ancillary: int | None = 0, storage: int | None = 0, magic: int | None = 0, bus: int | None = 0, total: int)[source]
Bases:
BaseModel
Logical Qubits Model.
- ancillary: int | None
- bus: int | None
- classmethod check_total(v, info)[source]
Validate that ‘total’ equals the sum of all other logical qubit fields.
- data: int | None
- magic: int | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- storage: int | None
- total: int
- class topqad_sdk.models.common_types.OutputErrorBudget(*, accumulated_error_bound: float, solovay_kitaev_error: float, algorithmic_error: float, factory_error: float)[source]
Bases:
BaseModel
Output error budget details.
- accumulated_error_bound: float
- algorithmic_error: float
- factory_error: float
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- solovay_kitaev_error: float
- class topqad_sdk.models.common_types.Runtime(*, value: float, unit: str)[source]
Bases:
BaseModel
Runtime value with an associated unit.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- unit: str
- value: float
- class topqad_sdk.models.common_types.UnitErrorBudget(*, input: InputErrorBudget, output: OutputErrorBudget)[source]
Bases:
BaseModel
Unit error budget details.
- input: InputErrorBudget
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- output: OutputErrorBudget
- class topqad_sdk.models.common_types.ValueUnit(*, value: float = 0.0, unit: str = 'None')[source]
Bases:
BaseModel
Value with an associated unit.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- unit: str
- value: float
topqad_sdk.models.enums module
- class topqad_sdk.models.enums.LayoutType(value)[source]
Bases:
str
,Enum
Layout type options.
- CUSTOM = 'custom'
- HLA = 'HLA'