Skip to content

Commit

Permalink
Removed some print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
willjmax committed Jun 2, 2024
1 parent afc69e6 commit 25c0ba4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion pennylane/templates/subroutines/prepselprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ def raiseIfNegative(x):
if jax.numpy.iscomplexobj(coeffs):
raise ValueError("Coefficients must be positive real numbers.")

print(coeffs)
smallest = jax.numpy.min(coeffs)
jax.debug.callback(raiseIfNegative, smallest)
else:
Expand Down
3 changes: 0 additions & 3 deletions tests/templates/test_subroutines/test_prepselprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ def test_block_encoding(self, lcu, control, wire_order, dim):
coeffs, _ = qml.PrepSelPrep.preprocess_lcu(lcu)
normalization_factor = qml.math.sum(qml.math.abs(coeffs))

print(matrix / normalization_factor)
print(block_encoding[0:dim, 0:dim])

assert qml.math.allclose(matrix / normalization_factor, block_encoding[0:dim, 0:dim])

ops1 = lcu1.terms()[1]
Expand Down

0 comments on commit 25c0ba4

Please sign in to comment.