Skip to main content

Flip

Overloads​

NameDescription
Flip(const List<integer> sites) -> SpinHalfOperatorCreates a spin-1/2 Operator that flips spins at specified sites.
Flip(integer site) -> SpinHalfOperatorCreates a spin-1/2 Operator that flips the spin at a single site.

Flip(const List<integer> sites) -> SpinHalfOperator​

Creates a spin-1/2 Operator that flips spins at specified sites.

Parameters​

  • sites: Vector of site indices where spins are flipped.

Flip(integer site) -> SpinHalfOperator​

Creates a spin-1/2 Operator that flips the spin at a single site.

Parameters​

  • site: The site index where the spin is flipped.