You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Context:**
`ctrl_decomp_zyz` with a target with `torch` parameters fails because
`qml.math.isclose(torch.Tensor, float)` raises a `TypeError`. From forum
post
[here](https://discuss.pennylane.ai/t/precautions-to-take-when-switching-to-an-ibm-device/3982/6).
**Description of the Change:**
Switching to `qml.math.isclose(float, torch.Tensor)` seems to appease
PyTorch.
**Related GitHub Issues:**
#5185
Expected behavior
ctrl_decomp_zyz
with a target withtorch
parameters runs successfullyActual behavior
a TypeError is raised in
qml.math.isclose
Additional information
from forum post: https://discuss.pennylane.ai/t/precautions-to-take-when-switching-to-an-ibm-device/3982/6
Source code
Tracebacks
No response
System information
Existing GitHub issues
The text was updated successfully, but these errors were encountered: