tequila.circuit.gates.SWAP

tequila.circuit.gates.SWAP(first: int, second: int, control: Union[int, list] = None, power: float = None) → tequila.circuit.circuit.QCircuit[source]

SWAP gate, order of targets does not matter.

Parameters
  • first (int) – target qubit

  • second (int) – target qubit

  • control – int or list of ints

  • power – numeric type (fixed exponent) or hashable type (parametrized exponent)

Returns

object

Return type

QCircuit