From 90e8670f45749d3edf5d032ee5aa50ab1b20f90d Mon Sep 17 00:00:00 2001 From: Jacfomg Date: Thu, 26 Oct 2023 15:27:27 +0400 Subject: [PATCH] fix --- .../characterization/two_qubit_interaction/chevron.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/qibocal/protocols/characterization/two_qubit_interaction/chevron.py b/src/qibocal/protocols/characterization/two_qubit_interaction/chevron.py index daba102aa..1a2c9e8b5 100644 --- a/src/qibocal/protocols/characterization/two_qubit_interaction/chevron.py +++ b/src/qibocal/protocols/characterization/two_qubit_interaction/chevron.py @@ -124,9 +124,12 @@ def _aquisition( sequence.add(cz.get_qubit_pulses(ordered_pair[1])) # Patch to get the coupler until the routines use QubitPair - sequence.add( - cz.coupler_pulses(platform.pairs[tuple(sorted(ordered_pair))].coupler.name) - ) + if platform.couplers: + sequence.add( + cz.coupler_pulses( + platform.pairs[tuple(sorted(ordered_pair))].coupler.name + ) + ) if params.parking: for pulse in cz: