Skip to main content

PairRotation

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

Returns the pair rotation operator exp(iθ(fifj+fjfi))\exp(i \theta (f_{i}^\dagger f_{j}^\dagger + f_{j} 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

PairRotation(pi/2,0,1)*Fbit("0000") // Returns (0 + 1i)|1100>