@@ -628,7 +628,7 @@ def test_repeated_cnot_experiments():
628628 for layouts , repeated_cnot_experiment in TESTS :
629629 layout_c , layout_t = layouts
630630 model = NoiselessModel .from_layouts (* layouts )
631- detectors = Detectors .from_layouts ("post-gate" , * layouts )
631+ detectors = Detectors .from_layouts (* layouts , frame = "post-gate" )
632632
633633 # standard experiment in both basis
634634 for rot_basis in [True , False ]:
@@ -666,7 +666,7 @@ def test_repeated_cnot_experiments():
666666
667667 # build for some specific detectors
668668 detectors = Detectors .from_layouts (
669- "post-gate" , * layouts , include_gauge_dets = True
669+ * layouts , frame = "post-gate" , include_gauge_dets = True
670670 )
671671 circuit = repeated_cnot_experiment (
672672 model = model ,
@@ -696,7 +696,7 @@ def test_repeated_cnot_experiments():
696696
697697 # without gauge detectors
698698 detectors = Detectors .from_layouts (
699- "post-gate" , * layouts , include_gauge_dets = False
699+ * layouts , frame = "post-gate" , include_gauge_dets = False
700700 )
701701 circuit = repeated_cnot_experiment (
702702 model = model ,
@@ -750,7 +750,7 @@ def test_repeated_s_injection_experiment():
750750 for layouts , repeated_s_injection_experiment in TESTS :
751751 layout , layout_anc = layouts
752752 model = NoiselessModel .from_layouts (* layouts )
753- detectors = Detectors .from_layouts ("post-gate" , * layouts )
753+ detectors = Detectors .from_layouts (* layouts , frame = "post-gate" )
754754
755755 # standard experiment in both basis
756756 for rot_basis in [True , False ]:
@@ -786,7 +786,7 @@ def test_repeated_s_injection_experiment():
786786
787787 # build for some specific detectors
788788 detectors = Detectors .from_layouts (
789- "post-gate" , * layouts , include_gauge_dets = True
789+ * layouts , frame = "post-gate" , include_gauge_dets = True
790790 )
791791 circuit = repeated_s_injection_experiment (
792792 model = model ,
@@ -823,7 +823,7 @@ def test_repeated_s_injection_experiment():
823823
824824 # without gauge detectors
825825 detectors = Detectors .from_layouts (
826- "post-gate" , * layouts , include_gauge_dets = False
826+ * layouts , frame = "post-gate" , include_gauge_dets = False
827827 )
828828 circuit = repeated_s_injection_experiment (
829829 model = model ,
0 commit comments