Make BaseDensePauliString
an Iterable class
#4837
Labels
area/gates
area/paulis
kind/health
For CI/testing/release process/refactoring/technical debt items
triage/accepted
A consensus emerged that this bug report, feature request, or other action should be worked on
Description of the issue
BaseDensePauliString
already defines a__getitem__
method which works for ints, and hence is already implicitly an iterable. However, mypy doesn't recognize it as an Iterable unless an explicit__iter__
method is defined.We can easily define the
__iter__
method as:However, this currently breaks a test due to an unfortunate combination of two bugs: #4835 and #4834
Cirq version
0.14.0.dev
The text was updated successfully, but these errors were encountered: