From 9b7605a1b3bb2ceca10d58dddef76efcaa66d9ce Mon Sep 17 00:00:00 2001 From: Christina Lee Date: Thu, 25 Jul 2024 17:59:07 -0400 Subject: [PATCH] Update pennylane/devices/legacy_facade.py Co-authored-by: Mudit Pandey --- pennylane/devices/legacy_facade.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pennylane/devices/legacy_facade.py b/pennylane/devices/legacy_facade.py index 05ee30a710f..0b8aa1e4982 100644 --- a/pennylane/devices/legacy_facade.py +++ b/pennylane/devices/legacy_facade.py @@ -337,15 +337,12 @@ def _update_original_device(self, temp_device): self._device._state = temp_device._state def _validate_backprop_method(self, tape): - print("in _valdiate_backprop_method") if tape.shots: - print("has shots") return False params = tape.get_parameters(trainable_only=False) interface = qml.math.get_interface(*params) if tape and any(isinstance(m.obs, qml.SparseHamiltonian) for m in tape.measurements): - print("sparse hamiltonian") return False if interface == "numpy": interface = None @@ -353,11 +350,8 @@ def _validate_backprop_method(self, tape): # determine if the device supports backpropagation backprop_interface = self._device.capabilities().get("passthru_interface", None) - print("im here") if backprop_interface is not None: # device supports backpropagation natively - print("backprop_interface", backprop_interface) - print("mapped_interface: ", mapped_interface) return mapped_interface in [backprop_interface, "Numpy"] # determine if the device has any child devices that support backpropagation backprop_devices = self._device.capabilities().get("passthru_devices", None)