pygsti.tools.sharedmemtools

pygsti.tools.sharedmemtools#

Utility functions for working with shared memory

Functions

cleanup_shared_ndarray(shm)

De-allocates a (potentially) shared numpy array, created by create_shared_ndarray().

create_shared_ndarray(resource_alloc, shape, ...)

Creates a numpy.ndarray that is potentially shared between processors.

shared_mem_is_enabled()

Whether shared memory functionality is available (Python 3.8+)

Classes

LocalNumpyArray([shape, dtype, buffer, ...])

Numpy array with metadata for referencing how this "local" array is part of a larger shared memory array.