Skip to main content

PhaseHop

PhaseHop(real angle, integer i, integer j) -> RealOperatorFermiParam

Returns the complex phase-hop operator eiϕfifj+eiϕfjfie^{i \phi} f_{i}^\dagger f_{j} + e^{-i \phi} f_{j}^\dagger f_{i} with support on the specified sites.

Parameters

  • angle: The phase angle ϕ\phi in radians.
  • i: The first site index.
  • j: The second site index.

Example

PhaseHop(0.0,0,1)*Fbit("1000") // Returns (1 + 0i)|0100>