deltakit.circuit.noise_channels.Depolarise2#

class deltakit.circuit.noise_channels.Depolarise2(qubit1: Qubit[T] | T, qubit2: Qubit[T] | T, probability: float, tag: str | None = None)#

Bases: OneProbabilityNoiseChannel[T], TwoQubitNoiseChannel[T]

The two-qubit depolarising channel. Applies a randomly chosen two-qubit Pauli product with a given probability.

Parameters:
  • qubit1 (Qubit[T] | T) – The first qubit in the noise channel.

  • qubit2 (Qubit[T] | T) – The second qubit in the noise channel.

  • probability (float) – A single float specifying the depolarisation strength.

Notes

Pauli Mixture:
1-p: II
p/15: IX
p/15: IY
p/15: IZ
p/15: XI
p/15: XX
p/15: XY
p/15: XZ
p/15: YI
p/15: YX
p/15: YY
p/15: YZ
p/15: ZI
p/15: ZX
p/15: ZY
p/15: ZZ

Methods#

Depolarise2.approx_equals

Determine whether two noise channels are equal within a given tolerance.

Depolarise2.from_consecutive

Yield a class instance for each pair in a flattened sequence of data.

Depolarise2.generator_from_prob

Return a classmethod that can be used to create a noise channel with a predetermined probability

Depolarise2.stim_targets

Get all stim gate targets for this noise channel in a tuple.

Depolarise2.transform_qubits

Transform this noise channel's qubits according to the id mapping.