Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Nov 12, 2024
1 parent aa1aecc commit 7ace738
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_quantum_info_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ def test_random_density_matrix(backend, dims, pure, metric, basis, normalize):
test = random_density_matrix(dims=dims, normalize=True)
else:
norm_function = (
backend.calculate_matrix_norm if basis is None else backend.calculate_norm
backend.calculate_matrix_norm
if basis is None
else backend.calculate_vector_norm
)
state = random_density_matrix(
dims,
Expand Down

0 comments on commit 7ace738

Please sign in to comment.