YY
Overloads
| Name | Description |
|---|---|
YY(const List<integer> sites) -> OperatorNamed | Returns a spin-1/2 OperatorNamed for operator, taking a vector of site indices. |
YY(integer site0, integer site1) -> OperatorNamed | Returns a spin-1/2 OperatorNamed for operator, taking two individual site indices. |
YY(const List<integer> sites) -> OperatorNamed
Returns a spin-1/2 OperatorNamed for operator, taking a vector of site indices.
Parameters
- sites: Vector of two site indices where the operator acts.
Example
var pyy2 = YY([1, 3])
YY(integer site0, integer site1) -> OperatorNamed
Returns a spin-1/2 OperatorNamed for operator, taking two individual site indices.
Parameters
- site0: The first site index.
- site1: The second site index.
Example
var pyy1 = YY(0, 1)