deltakit.circuit.Circuit.permute_stim_circuit#

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

Convert this circuit to a Stim circuit and append it to the end of the given circuit. The helper method as_stim_circuit should be used to create a new Stim circuit.

Parameters:
  • stim_circuit (stim.Circuit) – The Stim circuit to append this circuit to.

  • qubit_mapping (Mapping[Qubit[T], int] | None, optional) – A way to associate an integer for every qubit type. This is necessary because Stim represents qubits as single integers. This mapping should be injective. If not specified, deltakit_circuit will try to create a mapping from the qubits specified.