Skip to content

Commit

Permalink
revert changes to hamiltonian
Browse files Browse the repository at this point in the history
  • Loading branch information
lillian542 committed Apr 16, 2024
1 parent da3bfb7 commit d9508ac
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pennylane/ops/qubit/hamiltonian.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ def __init__(
)

for obs in observables:
if isinstance(obs, qml.ops.Prod):
# we don't really want this to ever happen, but it makes testing easier during the deprecation phase
# because we don't have to generate separate lists of parametrization for old and new opmath testing
obs = qml.simplify(obs)
obs = qml.operation.Tensor(*obs)
if not isinstance(obs, Observable):
raise ValueError(
"Could not create circuits. Some or all observables are not valid."
Expand Down

0 comments on commit d9508ac

Please sign in to comment.