Skip to main content

XXPYY

Overloads

NameDescription
XXPYY(const List<integer> sites) -> OperatorNamedReturns a spin-1/2 OperatorNamed for XiXj+YiYjX_i \cdot X_j + Y_i \cdot Y_j operator, taking a vector of site indices.
XXPYY(integer site0, integer site1) -> OperatorNamedReturns a spin-1/2 OperatorNamed for XiXj+YiYjX_i \cdot X_j + Y_i \cdot Y_j operator, taking two individual site indices.

XXPYY(const List<integer> sites) -> OperatorNamed

Returns a spin-1/2 OperatorNamed for XiXj+YiYjX_i \cdot X_j + Y_i \cdot Y_j operator, taking a vector of site indices.

Parameters

  • sites: Vector of two site indices where the operator acts.

Example

var xxpyy2 = XXPYY([2, 3])

XXPYY(integer site0, integer site1) -> OperatorNamed

Returns a spin-1/2 OperatorNamed for XiXj+YiYjX_i \cdot X_j + Y_i \cdot Y_j operator, taking two individual site indices.

Parameters

  • site0: The first site index.
  • site1: The second site index.

Example

var xxpyy1 = XXPYY(0, 1)