quantax.utils.det_update_rows#
- quantax.utils.det_update_rows(inv_old: Array, update: Array, update_idx: Array, return_inv: bool)#
” Applies a low-rank update to a determinant of orbitals, where only the rows are updated
The update to the orbitals is constructed. update = jnp.zeros([nparticle,nparticle]), update = update.at[update_idx].set(update)
Args inv_old: The inverse of the orbital matrix before the update update: The update to the rows update_idx: indices of the rows to be updated return_inv: bool indicating whether to update the inverse
Returns rat: The ratio between the updated determinant and the old determinant inv: The inverse of the updated determinant orbitals