Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles MOUSSA committed Nov 11, 2024
1 parent 3f278eb commit 86385f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qadence/measurements/shadow.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def extract_unitaries(unitary_ids: np.ndarray, n_qubits: int) -> list:
"""
unitaries = nested_operator_indexing(unitary_ids)
if n_qubits > 1:
unitaries = [kron(*l) for l in unitaries]
unitaries = [kron(*list_unitaries) for list_unitaries in unitaries]
return unitaries


Expand Down

0 comments on commit 86385f8

Please sign in to comment.