deltakit.circuit.gates.SymmetricTwoQubitGate#

class deltakit.circuit.gates.SymmetricTwoQubitGate(operand1: UT | T, operand2: VT | T, *, tag: str | None = None)#

Bases: TwoOperandGate[Qubit[T], Qubit[T]]

Abstraction of a two-qubit gate which is symmetric in the control and target qubits. This means equality can be relaxed between two symmetric gates.

Parameters:
  • operand1 (Qubit[T] | T) – The first operand of this operation. If the argument is not a Qubit then the input is made into a Qubit.

  • operand2 (Qubit[T] | T) – The second operand of this operation. If the argument is not a Qubit then the input is made into a Qubit.

stim_string#

The string that stim associates with this gate.

Type:

str

Methods#

SymmetricTwoQubitGate.from_consecutive

Yield an class instance for each pair in a flattened sequence of data.

SymmetricTwoQubitGate.stim_targets

Get the stim gate targets which define this operation.

SymmetricTwoQubitGate.transform_qubits

Transform this gates's qubits according to the id mapping.