qrunch.tools.mpi
MPI tools for distributed quantum computing.
This module provides builders for creating MPI-enabled quantum computing objects, primarily for distributed tensor network contraction using cuTensorNet.
- mpi_main(func: Callable[[P], R]) Callable[[P], R]
Decorate an MPI entry point with coordinated error handling and finalization.
MPI is imported only when the decorated function is called. Exceptions are logged before aborting all ranks. MPI is finalized when execution returns or unwinds, but a terminating MPI abort does not run Python cleanup.
- Parameters:
func (Callable[[~P], R]) – Entry point to run with MPI error handling.
- Return type:
Callable[[~P], R]
Modules
Re-exports of MPI contraction calculators. |
|
Builder classes for creating MPI-enabled quantum computing objects. |
|
Helpers for MPI entry points. |