Skip to main content

ModeRotation

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

Returns the mode rotation operator exp(iθ(fifj+fjfi))\exp(i \theta (f_{i}^\dagger f_{j} + f_{j}^\dagger f_{i})) with support on the specified sites.

Parameters

  • angle: The rotation angle heta heta in radians.
  • i: The first site index.
  • j: The second site index.

Example

ModeRotation(pi/2,0,1)*Fbit("1000") // Returns (0 + 1i)|0100>