ZN
ZN(const List<integer> sites) -> OperatorNamed
Returns a spin-1/2 OperatorNamed for operator.
Parameters
- sites: Vector of site indices where the operator acts (minimum 1 site).
Example
var zn_s = ZN([0]) // Single site: use brackets (vector format)
var zn_m = ZN([0, 1, 2, 3])
// ZN(0) would be INVALID - missing brackets