tequila.circuit.gates.ExpPauli

tequila.circuit.gates.ExpPauli(paulistring: Union[tequila.hamiltonian.qubit_hamiltonian.PauliString, str], angle, control: Union[list, int] = None)[source]

Exponentiated Pauligate:

ExpPauli(PauliString, angle) = exp(-i* angle/2* PauliString)

Parameters
  • paulistring (typing.Union[PauliString :) – given as PauliString structure or as string or dict or list if given as string: Format should be like X(0)Y(3)Z(2) if given as list: Format should be like [(0,’X’),(3,’Y’),(2,’Z’)] if given as dict: Format should be like { 0:’X’, 3:’Y’, 2:’Z’ }

  • angle – the angle (will be multiplied by paulistring coefficient if there is one)

  • control (typing.Union[list :) – control qubits

  • paulistring

  • str]

  • control

  • int] – (Default value = None)

Returns

Gate wrapped in circuit

Return type

type