ZZ
Overloads
| Name | Description |
|---|---|
ZZ(const List<integer> sites) -> OperatorNamed | Returns a spin-1/2 OperatorNamed for operator, taking a vector of site indices. |
ZZ(integer site0, integer site1) -> OperatorNamed | Returns a spin-1/2 OperatorNamed for operator, taking two individual site indices. |
ZZ(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 pzz2 = ZZ([1, 2])
ZZ(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 pzz1 = ZZ(0, 2)