pygsti.io.readers.read_data_from_mongodb

pygsti.io.readers.read_data_from_mongodb#

read_data_from_mongodb(mongodb, doc_id, preloaded_edesign=None, quick_load=False, comm=None)#

Load a ProtocolData from a MongoDB database.

Parameters:
  • mongodb (pymongo.database.Database) – The MongoDB instance to load data from.

  • doc_id (str) – The user-defined identifier of the data to load.

  • preloaded_edesign (ExperimentDesign, optional) – The experiment design belonging to the to-be-loaded data object, in cases when this has been loaded already (only use this if you know what you’re doing).

  • quick_load (bool, optional) – Setting this to True skips the loading of components that may take a long time to load. This can be useful when this information isn’t needed and loading takes a long time.

  • comm (mpi4py.MPI.Comm, optional) – When not None, an MPI communicator used to synchronize database access.

Return type:

ProtocolData