Open Jaybsoni opened 2 years ago
This sounds a bit more like an unsupported feature, no? I assume that measurements on the same wire are only supported for Paulis atm.
Ahh interesting, I would assume that if it works for Pauli's then it should work for any observable? I mean the grouping logic is currently written such that it only groups Pauli words.
If we never used to support this then I can change it to a feature request 👍🏼
Expected behavior
Measuring
Hadamard
and a Pauli Observable together on the same wire at the end of a circuit is well behaved.Actual behavior
An error raised which mentions that a non Pauli word observable was passed to a grouping method which only works with Pauli words.
Additional information
No response
Source code
Tracebacks
System information
Existing GitHub issues