Skip to main content

DualUnitary

DualUnitary(real J, const List<integer> sites) -> OperatorParam<real>

Returns a spin-1/2 dual unitary operator: exp(i(π4X(i)X(j)+π4Y(i)Y(j)+JzZ(i)Z(j)))\exp(i(\frac{\pi}{4} X(i) X(j) + \frac{\pi}{4} Y(i) Y(j) + J_z Z(i) Z(j))) where i,ji, j are the site indices.

Parameters

  • J: The Jz constant parameter.
  • sites: Vector of two site indices where the operator acts.

Example

var dual_u = DualUnitary(0.25, [0, 1])  // Dual unitary with Jz=0.25