Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Sep 25, 2024
1 parent 3e9d9a8 commit f492af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/quantum_info/superoperator_transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def vectorization(state, order: str = "row", backend=None):
elif len(state.shape) == 3 and state.shape[1] == 1:
state = backend.np.einsum(
"aij,akl->aijkl", backend.np.conj(state), state
).reshape(a.shape[0], a.shape[1], a.shape[1])
).reshape(state.shape[0], state.shape[1], state.shape[1])

if order == "row":
state = backend.np.reshape(state, (-1, state.shape[-1] ** 2))
Expand Down

0 comments on commit f492af0

Please sign in to comment.