Cannot print PauliSumExponential
of identity gate
#5944
Labels
area/gates
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
Milestone
Description of the issue
Exponentiating an identity gate with
PauliSumExponential
and then printing it raises a ValueError, similar to #5927. I could not tell whether the pull request that fixes the aforementioned issue would fix this one too. Feel free to close this issue if this is the case.How to reproduce the issue
ValueError: Wanted diagram info from cirq.PauliStringPhasor(((1+0j)*cirq.PauliString()), qubits=(), exponent_neg=-0.31830988618379075, exponent_pos=0.3183098861837907) for []) but got cirq.CircuitDiagramInfo(wire_symbols=(), exponent=-0.6366197723675815, connected=True, exponent_qubit_index=None, auto_exponent_parens=True)
Cirq version
1.0.0
The text was updated successfully, but these errors were encountered: