qilisdk.noise.noise_model
Attributes
Classes
Container for noise sources and parameter perturbations. |
Module Contents
- type Qubit = int[fuente]
- type ParameterName = str[fuente]
- TNoise[fuente]
- TParameterPerturbation[fuente]
- class NoiseModel(noise_config: qilisdk.noise.noise_config.NoiseConfig | None = None)[fuente]
Container for noise sources and parameter perturbations.
Stores global, per-qubit, and per-gate noise along with parameter-level perturbations for later application in backends.
- property noise_config: qilisdk.noise.noise_config.NoiseConfig[fuente]
Return the noise configuration.
- Devuelve:
The noise configuration instance.
- Tipo del valor devuelto:
- property global_noise: list[qilisdk.noise.noise.Noise][fuente]
Return the list of globally applied noise sources.
- Devuelve:
Noise sources applied to all operations.
- Tipo del valor devuelto:
list[Noise]
- property per_qubit_noise: dict[Qubit, list[qilisdk.noise.noise.Noise]][fuente]
Return the per-qubit noise mapping.
- Devuelve:
Noise sources keyed by qubit index.
- Tipo del valor devuelto:
dict[int, list[Noise]]
- property per_gate_noise: dict[GateType, list[qilisdk.noise.noise.Noise]][fuente]
Return the per-gate-type noise mapping.
- property per_gate_per_qubit_noise: dict[tuple[GateType, Qubit], list[qilisdk.noise.noise.Noise]][fuente]
Return the per-gate-type and per-qubit noise mapping.
- property global_perturbations: dict[ParameterName, list[qilisdk.noise.parameter_perturbation.ParameterPerturbation]][fuente]
Return the global parameter perturbation mapping.
- Devuelve:
Perturbations keyed by parameter name.
- Tipo del valor devuelto:
dict[str, list[ParameterPerturbation]]
- property per_gate_perturbations: dict[tuple[GateType, ParameterName], list[qilisdk.noise.parameter_perturbation.ParameterPerturbation]][fuente]
Return the per-gate-type parameter perturbation mapping.
- Devuelve:
Perturbations keyed by gate type and parameter.
- Tipo del valor devuelto:
dict[tuple[type[Gate], str], list[ParameterPerturbation]]
- add(noise: TNoise) None[fuente]
- add(noise: TNoise, *, qubits: list[Qubit]) None
- add(noise: TNoise, *, gate: GateType) None
- add(noise: TParameterPerturbation, *, parameter: ParameterName) None
- add(noise: TParameterPerturbation, *, gate: GateType, parameter: ParameterName) None
Attach a noise source or parameter perturbation to the model.
- Parámetros:
noise (
Noise | ParameterPerturbation) – The noise or parameter perturbation instance to attach.qubits (
list[int] | None) – Target qubit index or indices for per-qubit noise attachments.gate (
type[Gate] | None) – Target gate type for per-gate noise or perturbation attachments.parameter (
str | None) – Target parameter name for perturbation attachments.
- Muestra:
ValueError – If the noise/perturbation does not allow the inferred scope.