quantax.utils.det_update_gen#
- quantax.utils.det_update_gen(inv_old: Array, row_update: Array, column_update: Array, overlap_update: Array, row_idx: Array, column_idx: Array, return_inv: bool)#
” Applies a low-rank update to a determinant of orbitals, returning the ratio between the updated determinant and the old determinant as well as the inverse of the update orbitals.
The update to the orbitals is an “L shaped update” constructed from low_rank_update_matrix. update = jnp.zeros([nparticle,nparticle]), update = update.at[row_idx].set(row_update) update = update.at[:, column_idx].set(column_update) update = update.at[row_idx, column_idx].set(overlap_update)
Args inv_old: The inverse of the orbital matrix before the update row_update: The update to the rows column_update: The update to the columns overlap_update: The update to the section of the matrix where the rows and columns overlap row_idx: indices of the rows column_idx: indices of the columns 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