cuquantum.custatevec.communicator_create

cuquantum.custatevec.communicator_create(intptr_t handle, int communicator_type, unicode soname=u'') intptr_t[source]

Create a cuStateVec distributed communicator.

Parameters
  • handle (intptr_t) – The library handle.

  • communicator_type (CommunicatorType) – The MPI library behind mpi4py.

  • soname (str) – Optional. If the name to the MPI wrapper library is specified, cuStateVec will attempt to load the shared library at runtime to fetch needed MPI symbols.

Returns

The opaque communicator descriptor (as Python int).

Return type

intptr_t