qat.purr.qatconfig module
- class InstructionValidationConfig(**data)
Bases:
BaseModel
The default settings for validation of instructions.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
-
ACQUIRE_CHANNEL:
bool
- property DISABLED
-
MAX_INSTRUCTION_LENGTH:
bool
-
NO_MID_CIRCUIT_MEASUREMENT:
bool
-
PULSE_DURATION_LIMITS:
bool
- classmethod check_disable_pulse_duration_limits(PULSE_DURATION_LIMITS)
- disable()
- model_config: ClassVar[ConfigDict] = {'validate_assignment': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
ACQUIRE_CHANNEL:
- class QatConfig(_case_sensitive=None, _nested_model_default_partial_update=None, _env_prefix=None, _env_file=PosixPath('.'), _env_file_encoding=None, _env_ignore_empty=None, _env_nested_delimiter=None, _env_nested_max_split=None, _env_parse_none_str=None, _env_parse_enums=None, _cli_prog_name=None, _cli_parse_args=None, _cli_settings_source=None, _cli_parse_none_str=None, _cli_hide_none_type=None, _cli_avoid_json=None, _cli_enforce_required=None, _cli_use_class_docs_for_groups=None, _cli_exit_on_error=None, _cli_prefix=None, _cli_flag_prefix_char=None, _cli_implicit_flags=None, _cli_ignore_unknown_args=None, _cli_kebab_case=None, _cli_shortcuts=None, _secrets_dir=None, **values)
Bases:
BaseSettings
Full settings for a single job. Allows environment variables to be overridden by direct assignment.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
-
INSTRUCTION_VALIDATION:
InstructionValidationConfig
Options for Instruction validation before execution.
-
MAX_REPEATS_LIMIT:
Optional
[int
] Max number of repeats / shots to be performed in a single job.
-
SIMULATION:
QatSimulationConfig
Options for QATs simulation backends.
- model_config: ClassVar[SettingsConfigDict] = {'arbitrary_types_allowed': True, 'case_sensitive': False, 'cli_avoid_json': False, 'cli_enforce_required': False, 'cli_exit_on_error': True, 'cli_flag_prefix_char': '-', 'cli_hide_none_type': False, 'cli_ignore_unknown_args': False, 'cli_implicit_flags': False, 'cli_kebab_case': False, 'cli_parse_args': None, 'cli_parse_none_str': None, 'cli_prefix': '', 'cli_prog_name': None, 'cli_shortcuts': None, 'cli_use_class_docs_for_groups': False, 'enable_decoding': True, 'env_file': None, 'env_file_encoding': None, 'env_ignore_empty': False, 'env_nested_delimiter': '_', 'env_nested_max_split': None, 'env_parse_enums': None, 'env_parse_none_str': None, 'env_prefix': 'QAT_', 'extra': 'forbid', 'json_file': None, 'json_file_encoding': None, 'nested_model_default_partial_update': False, 'protected_namespaces': ('model_validate', 'model_dump', 'settings_customise_sources'), 'secrets_dir': None, 'toml_file': None, 'validate_assignment': True, 'validate_default': True, 'yaml_config_section': None, 'yaml_file': None, 'yaml_file_encoding': None}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- classmethod settings_customise_sources(settings_cls, init_settings, env_settings, dotenv_settings, file_secret_settings)
Define the sources and their order for loading the settings values.
- Return type:
Tuple
[PydanticBaseSettingsSource
,...
]
- Args:
settings_cls: The Settings class. init_settings: The InitSettingsSource instance. env_settings: The EnvSettingsSource instance. dotenv_settings: The DotEnvSettingsSource instance. file_secret_settings: The SecretsSettingsSource instance.
- Returns:
A tuple containing the sources and their order for loading the settings values.
- validate(compiler_config)
_summary_
- Args:
compiler_config (CompilerConfig): _description_
-
INSTRUCTION_VALIDATION:
- class QatSimulationConfig(**data)
Bases:
BaseModel
The default settings for QATs simulation backends.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
-
QISKIT:
QiskitSimulationConfig
- model_config: ClassVar[ConfigDict] = {'validate_assignment': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
QISKIT:
- class QiskitSimulationConfig(**data)
Bases:
BaseModel
The default settings for the Qiskit Simulator, including overridden MPS settings.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
-
ENABLE_METADATA:
bool
Returns the AerSimulator metadata if enabled.
-
FALLBACK_SEQUENCE:
list
[Literal
['automatic'
,'statevector'
,'density_matrix'
,'stabilizer'
,'matrix_product_state'
,'extended_stabilizer'
,'unitary'
,'superop'
]] If the simulation fails, specify a fallback sequence of methods to call.
-
METHOD:
Literal
['automatic'
,'statevector'
,'density_matrix'
,'stabilizer'
,'matrix_product_state'
,'extended_stabilizer'
,'unitary'
,'superop'
] The simulation method to use.
-
OPTIONS:
dict
Specify the options for a chosen AerSimulator backend. See https://docs.quantum.ibm.com/api/qiskit/0.37/qiskit.providers.aer.AerSimulator for options you can provide.
- model_config: ClassVar[ConfigDict] = {'validate_assignment': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Return type:
None
- Args:
self: The BaseModel instance. context: The context.
-
ENABLE_METADATA: