deltakit.circuit.GateLayer.permute_stim_circuit#

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

Updates stim_circuit with the stim circuit which contains the gates specified in this GateLayer.

Parameters:
  • stim_circuit (stim.Circuit) – The stim circuit to be updated with the stim representation of this gate 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.