pygsti.io.readers.read_protocol_from_mongodb

pygsti.io.readers.read_protocol_from_mongodb#

read_protocol_from_mongodb(mongodb, doc_id, quick_load=False)#

Load a Protocol 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 protocol object to load.

  • 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.

Return type:

Protocol