quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.24k stars 1.01k forks source link

Run product state functions inplace to avoid copies where possible #6396

Closed daxfohl closed 7 months ago

daxfohl commented 8 months ago

A few places were not running inplace. This PR has them run inplace so to avoid unnecessary copies.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ee56c59) 97.81% compared to head (00837b8) 97.81%. Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6396 +/- ## ======================================= Coverage 97.81% 97.81% ======================================= Files 1111 1111 Lines 97121 97167 +46 ======================================= + Hits 95000 95047 +47 + Misses 2121 2120 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.