Skip to content

Commit

Permalink
Update src/qibolab/serialize.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Candido <[email protected]>
  • Loading branch information
Jacfomg and alecandido authored Dec 12, 2023
1 parent 406bc66 commit 337151e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qibolab/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ def dump_qubits(qubits: QubitMap, pairs: QubitPairMap, couplers: CouplerMap = No
"single_qubit": {q: qubit.characterization for q, qubit in qubits.items()},
}
for q in qubits:
kernel_path = characterization["single_qubit"][q].pop("kernel_path")
qubit = characterization["single_qubit"][q]
kernel_path = qubit["kernel_path"]
if kernel_path is not None:
characterization["single_qubit"][q]["kernel_path"] = kernel_path.name
qubit["kernel_path"] = kernel_path.name

if couplers:
characterization["coupler"] = {c.name: {"sweetspot": c.sweetspot} for c in couplers.values()}
Expand Down

0 comments on commit 337151e

Please sign in to comment.