Skip to main content

XX

Overloads

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

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

Returns a spin-1/2 OperatorNamed for XiXjX_i \cdot X_j operator, taking a vector of site indices.

Parameters

  • sites: Vector of exactly two site indices [i,j][i, j] where the operator acts.

Example

var pxx2 = XX([2, 3])

XX(integer site0, integer site1) -> OperatorNamed

Returns a spin-1/2 OperatorNamed for XiXjX_i \cdot X_j operator, taking two individual site indices.

Parameters

  • site0: The first site index (ii).
  • site1: The second site index (jj).

Example

var pxx1 = XX(1, 2)