deltakit.circuit.NoiseLayer.permute_stim_circuit#

NoiseLayer.permute_stim_circuit(stim_circuit: Circuit, qubit_mapping: Mapping[Qubit[T], int] | None = None)#

Updates stim_circuit with the stim circuit which contains the noise channels specified in this NoiseLayer.

Parameters:
  • stim_circuit (stim.Circuit) – The stim circuit to be updated with the stim representation of this noise layer.

  • qubit_mapping (Mapping[Qubit[T], int] | None, optional) – A mapping between each qubit in this layer and an integer which is necessary for outputting a stim circuit. By default None which means a default mapping is used.