deltakit.explorer.qpu.ToyNoise#

class deltakit.explorer.qpu.ToyNoise(*, gate_noise: list[NoiseProfile] = <factory>, idle_noise: Callable[[Qubit, float], NoiseChannel] | None = None, reset_noise: list[NoiseProfile] = <factory>, measurement_noise_after: list[NoiseProfile] = <factory>, measurement_noise_before: list[NoiseProfile] = <factory>, measurement_flip: dict[type[_MeasurementGate], Callable[[_MeasurementGate], _MeasurementGate]] = <factory>, p: float = 0, p_measurement_flip: float | None = None)#

Bases: NoiseParameters

A noise model specified only by two parameters.

One parameter gives the two-qubit operation error rate, which is assumed to be the dominant error. Therefore, all other noise channels (excluding the probability of obtaining an incorrect measurement result, which is specified separately) have an error rate a factor of ten lower. Idle noise is therefore not time dependent. All these noise channels are depolarising channels – the noise channels occurring after a two-qubit gate are two-qubit depolarising channels and all others are one-qubit depolarising channels.

The other parameter gives the probability of obtaining an incorrect measurement result.

Parameters:
  • p (float) – Depolarising error rate of two-qubit gates. One-qubit operations, including idle noise, have a depolarising error rate of 0.1 * p. By default, this is 0.

  • p_measurement_flip (Optional[float]) – The probability of obtaining an incorrect measurement result. By default, this has the same value as p.

Methods#

ToyNoise.as_noise_profile_after_gate

Returns the noise profiles encapsulated by this object as a single generator of noise profiles.