tequila.circuit.gates.Phase

tequila.circuit.gates.Phase(phi: Union[collections.abc.Hashable, numbers.Number], target: Union[list, int], control: Union[list, int] = None) → tequila.circuit.circuit.QCircuit[source]

Initialize an abstract phase gate.

Notes

Initialize an abstract phase gate which acts as

\[\begin{split}S(\phi) = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\phi} \end{pmatrix}\end{split}\]
Parameters
  • phi – defines the phase, can be numeric type (static gate) or hashable non-numeric type (parametrized gate)

  • target – int or list of int

  • control – int or list of int

Returns

object

Return type

QCircuit