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
The pauli_rep property allows to represent an operator as a PauliSentence instance.
Currently, it is mostly implemented for qml.X, qml.Y, qml.Z and for operator math classes.
It would be great to have pauli_rep attributes for, e.g., Clifford gates (Hadamard, S, CNOT), but also for other ops.
This would simplify manipulation of qml.pauli objects.
This came up while writing this demo, where we currently have to do
i.e., we have to go via the dense matrix representation to obtain the new operator. With qml.CNOT.pauli_rep implemented, we could stay in the more efficient Pauli representation.
Implementation
Basically trivial, as far as I can tell.
How important would you say this feature is?
1: Not important. Would be nice to have.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Feature details
The
pauli_rep
property allows to represent an operator as aPauliSentence
instance.Currently, it is mostly implemented for
qml.X, qml.Y, qml.Z
and for operator math classes.It would be great to have
pauli_rep
attributes for, e.g., Clifford gates (Hadamard
,S
,CNOT
), but also for other ops.This would simplify manipulation of
qml.pauli
objects.This came up while writing this demo, where we currently have to do
i.e., we have to go via the dense matrix representation to obtain the new operator. With
qml.CNOT.pauli_rep
implemented, we could stay in the more efficient Pauli representation.Implementation
Basically trivial, as far as I can tell.
How important would you say this feature is?
1: Not important. Would be nice to have.
Additional information
No response
The text was updated successfully, but these errors were encountered: