Skip to content

Commit

Permalink
docs: add qualibration library note
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Oct 28, 2024
1 parent f44d34b commit bed4f55
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/calibration_graphs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bed4f55

Please sign in to comment.