Closed maffoo closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.81%. Comparing base (
543d9cd
) to head (0cddef6
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
When constructing circuits with
Circuit.from_moments
we often want to conditionally include a moment and we often end up with awkward expressions like:This PR would allow us to pass
None
as an arg tofrom_moments
in which case that arg would be skipped and not included in the circuit (not even as an empty moment). The above code can then be written more clearly as: