Skip to content

Commit

Permalink
fix: Usage of runcard folders in docs
Browse files Browse the repository at this point in the history
Partial port from #782
  • Loading branch information
alecandido committed Jan 25, 2024
1 parent e927b05 commit e37ff17
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/source/getting-started/experiment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ For simplicity, the qubit will be controlled by a RFSoC-based system, althought
from qibolab.serialize import load_qubits, load_runcard, load_settings

NAME = "my_platform" # name of the platform
ADDRESS = "192.168.0.1" # ip adress of the controller
ADDRESS = "192.168.0.1" # ip address of the controller
PORT = 6000 # port of the controller

# path to runcard file with calibration parameter
RUNCARD = pathlib.Path.cwd() / "my_platform.yml"
# folder containing runcard with calibration parameters
FOLDER = pathlib.Path.cwd()


def create(runcard_path=RUNCARD):
def create(folder=FOLDER):
# Instantiate controller instruments
controller = RFSoC(NAME, ADDRESS, PORT)

Expand All @@ -54,7 +54,7 @@ For simplicity, the qubit will be controlled by a RFSoC-based system, althought
channels |= Channel("drive", port=controller[0])
# create qubit objects
runcard = load_runcard(runcard_path)
runcard = load_runcard(folder)
qubits, pairs = load_qubits(runcard)
# assign channels to qubits
qubits[0].readout = channels["L3-22_ro"]
Expand Down

0 comments on commit e37ff17

Please sign in to comment.