Skip to main contentIBM Quantum Documentation Mirror

LayerError

class LayerError(circuit, qubits, error)

GitHub(opens in a new tab)

The error channel (in Pauli-Lindblad format) of a single layer of instructions.

Parameters

  • circuit (QuantumCircuit) – A circuit whose noise has been learnt.
  • qubits (Sequence[int]) – The labels of the qubits in the circuit.
  • error (PauliLindbladError) – The Pauli Lindblad error channel affecting the circuit.

Raises

ValueError – If circuit, qubits, and error have mismatching number of qubits.


Attributes

circuit

The circuit in this LayerError.

Return type

QuantumCircuit

error

The error channel in this LayerError.

Return type

PauliLindbladError

generators

(DEPRECATED) The Pauli Lindblad generators of the error channel in this LayerError.

Return type

PauliList

num_qubits

The number of qubits in this LayerError.

Return type

int

qubits

The qubits in this LayerError.

Return type

List[int]

rates

(DEPRECATED) The Lindblad generator rates of the error channel in this LayerError.

Return type

ndarray(opens in a new tab)[Any, dtype(opens in a new tab)[float64]]


Methods