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
Hey @isaacdevlugt, Controlled(-1 * Z(0) @ Z(1)) and any other C(SProd) are supported in Lightning by calling the PL decomposition methods of the unsupported ops. You ran into this issue as there is not any generic 'decomposition' method for C(SProd) in PL.
In Lightning, however, we can support this either by gate diagonalization OR decomposition of C(SProd) to a QubitUnitary op as alternatives. I could run your example with the latter. Here's the branch if you want to try it out.
Issue description
The following code does not work (NB: the
-1
factor inops
).Expected behavior:
lightning.qubit
should decompose the given controlled operator into that +GlobalPhase
Actual behavior: It does not.
Reproduces how often: 100%
System information:
Source code and tracebacks
Additional information
--
The text was updated successfully, but these errors were encountered: