[BUG] Allow natural extension of QubitUnitary
to 1x1 matrices
#5819
Labels
bug 🐛
Something isn't working
QubitUnitary
to 1x1 matrices
#5819
Expected behavior
QubitUnitary
currently does not accept a 1x1 matrix on 0 wires, which would be equivalent to aGlobalPhase
gate. Since PennyLane actually does allow 0 wire circuits and a 1x1 unitary matrix is a valid quantum operator (with an existing alias in PennyLane, see GlobalPhase), it would be nice to resolve this inconsistency.Actual behavior
Error is raised:
Additional information
No response
Source code
No response
Tracebacks
No response
System information
Existing GitHub issues
The text was updated successfully, but these errors were encountered: