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

Limit maximum multiprocessing pool size in xeb tests #6713

Closed pavoljuhas closed 4 weeks ago

pavoljuhas commented 4 weeks ago

Problem: multiprocessing.Pool() uses all available cores which can cause problems on hardware with many cores.

Solution: Limit the maximum pool size to 4.

codecov[bot] commented 4 weeks ago

Codecov Report

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

Project coverage is 97.83%. Comparing base (6037f18) to head (2b98779). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6713 +/- ## ========================================== - Coverage 97.83% 97.83% -0.01% ========================================== Files 1077 1077 Lines 92482 92484 +2 ========================================== + Hits 90480 90481 +1 - Misses 2002 2003 +1 ```

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