openfermion.config.get_available_cpu_count

Returns the number of CPU cores available to the current process.

This function respects active CPU limits such as process affinity, Docker container limits, and pytest-xdist worker distribution to prevent oversubscription.