Skip to content

Commit

Permalink
linter update
Browse files Browse the repository at this point in the history
  • Loading branch information
Coull committed Dec 5, 2024
1 parent 677dada commit ab09d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/braket/default_simulator/linalg_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _multiply_matrix(
# Axes given in `operation.targets` are in the first positions.
unused_idxs = [idx for idx in range(len(state.shape)) if idx not in targets]
# Invert the permutation to put the indices in the correct place
inverse_permutation = np.argsort([*targets, * unused_idxs])
inverse_permutation = np.argsort([*targets, *unused_idxs])
return np.transpose(product, inverse_permutation)


Expand Down

0 comments on commit ab09d7c

Please sign in to comment.