Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 4, 2024
1 parent 5192b14 commit 2bfd6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/quantum_info/random_ensembles.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def random_statevector(dims: int, seed=None, backend=None):
state = local_state.standard_normal(dims).astype(complex)
state += 1.0j * local_state.standard_normal(dims)
state /= np.linalg.norm(state)
state = backend.cast(state, dtype=state.dtype)
state = backend.cast(state, dtype=state.dtype)

return state

Expand Down

0 comments on commit 2bfd6ec

Please sign in to comment.