utils#
Data#
The structure used to keep track of the data updates |
Array#
Whether the input array is sharded. |
|
Transform the array to be sharded across all devices in the first dimension. |
|
Transform the array to be replicated across all devices. |
|
In multi-host jobs, use |
|
In multi-host jobs, use |
|
In multi-host jobs, use |
|
In multi-host jobs, use |
|
Extend the array. |
|
Equivalent to |
|
Equivalent to |
Spins#
Converts QuSpin basis integers to int8 state array |
|
Converts int8 state array to QuSpin basis integers |
|
Return a single neel state |
|
Return a single stripe state |
|
Spin structure factor \(\left< \frac{1}{2 \sqrt{N}} S^z_r S^z_0 e^{-iqr} \right>\) |
|
Random basis states. |
Pytree#
Return the array given by |
|
Transform the pytree to be replicated on all devices. |
|
The same as |
|
Split a pytree potentially with complex values to two real pytrees, one for the real part and the other for the imaginary part |
|
Combine two real pytrees to a complex one. |
|
Similar to |
Function#
f -> jit(chunk_map(shard_map(vmap(f)))) |
|
Convert a vmapped function to a function with chunked batches and parallel computation on all available machines. |
|
f -> shard_map(f), sharded along the first dimension |
Linear algebra#
The same as |
|
Return pfaffian of the input matrix A. |
|
Applies a low-rank update to a pfaffian matrix, returning the ratio between the updated pfaffian and the old pfaffian as well as the inverse of the update orbitals |