Skip to content

Commit

Permalink
Update qiskit_addon_dice_solver/dice_solver.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin J. Sung <[email protected]>
  • Loading branch information
caleb-johnson and kevinsung authored Sep 23, 2024
1 parent 55b2179 commit f208431
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qiskit_addon_dice_solver/dice_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,7 @@ def _construct_ci_vec_from_addresses_amplitudes(
num_dets = len(uniques)
ci_vec = np.zeros((num_dets, num_dets))

addr_map = {}
for i, uni_addr in enumerate(uniques):
addr_map[uni_addr] = i
addr_map = {uni_addr: i for i, uni_addr in enumerate(uniques)}

for idx, address in enumerate(addresses):
address_a = address[0]
Expand Down

0 comments on commit f208431

Please sign in to comment.