Operations on MutableDensePauliString
return a DensePauliString
#4835
Labels
area/gates
area/paulis
good first issue
This issue can be resolved by someone who is not familiar with the codebase. A good starting issue.
kind/bug-report
Something doesn't seem to work.
no QC knowledge needed
Want to contribute to Cirq, but don't know quantum computing? This issue is for you.
triage/accepted
A consensus emerged that this bug report, feature request, or other action should be worked on
Uh oh!
There was an error while loading. Please reload this page.
Description of the issue
Doing operations like
__pow__
,__mul__
,__rmul__
,__abs__
,tensor_product
etc. on aMutableDensePauliString
return aDensePauliString
because these methods are inherited fromBaseDensePauliString
which returnsDensePauliString(...)
instead oftype(self)(...)
in these methods.https://github.com/quantumlib/Cirq/blob/master/cirq-core/cirq/ops/dense_pauli_string.py#L206-L208
How to reproduce the issue
Cirq version
0.14.0.dev
The text was updated successfully, but these errors were encountered: