From bed4f55f8f735376024440a8433e4fc198842b8f Mon Sep 17 00:00:00 2001 From: Serwan Asaad Date: Mon, 28 Oct 2024 09:03:32 +0100 Subject: [PATCH] docs: add qualibration library note --- docs/calibration_graphs.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/calibration_graphs.md b/docs/calibration_graphs.md index fd551dd..1c87f08 100644 --- a/docs/calibration_graphs.md +++ b/docs/calibration_graphs.md @@ -83,6 +83,16 @@ from qualibrate import QualibrationLibrary, QualibrationGraph, GraphParameters from qualibrate.orchestration.basic_orchestrator import BasicOrchestrator ``` +### Loading the Calibration Library + +The next step is to load the calibration library: + +```python +library = QualibrationLibrary.get_active_library() +``` + +This will scan the library folder and load all existing nodes and graphs, which allows us to use the nodes in the graph. + ### Defining Graph Input Parameters Next, define the graph parameters. Typically, this only consists of the graph targets, which are `qubits` by default: @@ -135,6 +145,8 @@ from typing import List, Optional from qualibrate import QualibrationLibrary, QualibrationGraph, GraphParameters from qualibrate.orchestration.basic_orchestrator import BasicOrchestrator +library = QualibrationLibrary.get_active_library() + # Define graph target parameters class Parameters(GraphParameters): qubits: Optional[List[str]] = None