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
There were two nits that I didn't address in the original PR and I do
here.
For the `for` loop calling `merged_ops.extend()`, I couldn't rewrite it
entirely as:
```
merged_ops.extend(_transform_single_qubit_operations_to_phased_x_and_z(qubit_ops, atol=atol) for qubit_ops in pending_ops.values())
```
because mypy complained about type mismatch: `merged_ops.extend` expects
an iterator over `Operation`, but
`_transform_single_qubit_operations_to_phased_x_and_z` returns a list of
operations, and so with the `for` loop it is an iterator over lists.
Co-authored-by: Noureldin <[email protected]>
0 commit comments