Skip to content

Commit

Permalink
improved do-tensor rule, to be ported to vertex later
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaipgc committed Oct 5, 2023
1 parent 390218f commit e30a6ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyscf_ipu/nanoDFT/sparse_symmetric_intor_ERI.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ def compute_diff_jk(dm, mol, nprog, nbatch, tolerance, backend):
all_outputs = []
all_indices = []
start_index = 0
start, stop = 0, 0
np.random.seed(42)

NUM_TILES = 1472
Expand Down Expand Up @@ -459,7 +458,7 @@ def ijkl_in_bounds(i, j, k, l):

block_do = np.zeros((_dl*_dk*_dj*_di))
for ci, ijkl in enumerate(block_idx.reshape(-1, 4)):
block_do[ci] = ijkl_in_bounds(ijkl[2], ijkl[3], ijkl[0], ijkl[1])
block_do[ci] = ijkl_in_bounds(ijkl[2], ijkl[3], ijkl[0], ijkl[1]) and ~(nonzero_seed[ijkl[0]] ^ nonzero_seed[ijkl[1]]) ^ (nonzero_seed[ijkl[2]] ^ nonzero_seed[ijkl[3]])

comp_distinct_idx_list[comp_list_index] = block_idx.reshape(-1, 4)
comp_do_list[comp_list_index] = block_do
Expand Down

0 comments on commit e30a6ef

Please sign in to comment.