quri_parts.stim.circuit package

convert_circuit(circuit)

Converts a ImmutableQuantumCircuit to stim.Circuit.

Parameters:

circuit (ImmutableQuantumCircuit)

Return type:

Circuit

convert_gate(gate)

Converts a QuantumGate to the list of the gate’s name and the qubit indices applied.

Parameters:

gate (QuantumGate)

Return type:

Sequence[tuple[str, Sequence[int]]]