@@ -167,8 +167,9 @@ def test_configure_valid_multi_error_lut_decoders():
167167 dc .type = "multi_error_lut"
168168 dc .block_size = 10
169169 dc .syndrome_size = 3
170- dc .num_syndromes_per_round = 3
171170 dc .H_sparse = [1 , 2 , 3 , - 1 , 6 , 7 , 8 , - 1 , - 1 ]
171+ dc .D_sparse = qec .generate_timelike_sparse_detector_matrix (
172+ dc .syndrome_size , 2 , include_first_round = False )
172173 dc .set_decoder_custom_args (nv )
173174
174175 mdc = qec .multi_decoder_config ()
@@ -195,7 +196,6 @@ def test_decoder_config_yaml_roundtrip_and_custom_args():
195196 dc .type = "nv-qldpc-decoder"
196197 dc .block_size = 10
197198 dc .syndrome_size = 3
198- dc .num_syndromes_per_round = 3
199199 dc .H_sparse = [1 , 2 , 3 , - 1 , 6 , 7 , 8 , - 1 , - 1 ]
200200 dc .set_decoder_custom_args (nv )
201201
@@ -210,7 +210,6 @@ def test_decoder_config_yaml_roundtrip_and_custom_args():
210210 assert dc2 .type == "nv-qldpc-decoder"
211211 assert dc2 .block_size == 10
212212 assert dc2 .syndrome_size == 3
213- assert dc2 .num_syndromes_per_round == 3
214213
215214 # Recover NV config from decoder_custom_args (it's already the config object)
216215 nv2 = dc2 .decoder_custom_args
@@ -236,7 +235,6 @@ def test_multi_decoder_config_yaml_roundtrip():
236235 d1 .type = "nv-qldpc-decoder"
237236 d1 .block_size = 10
238237 d1 .syndrome_size = 3
239- d1 .num_syndromes_per_round = 3
240238 d1 .H_sparse = [1 , 2 , 3 , - 1 , 6 , 7 , 8 , - 1 , - 1 ]
241239 d1 .set_decoder_custom_args (nv )
242240
@@ -248,7 +246,6 @@ def test_multi_decoder_config_yaml_roundtrip():
248246 d2 .type = "multi_error_lut"
249247 d2 .block_size = 10
250248 d2 .syndrome_size = 3
251- d2 .num_syndromes_per_round = 3
252249 d2 .H_sparse = [1 , 2 , 3 , - 1 , 6 , 7 , 8 , - 1 , - 1 ]
253250 d2 .set_decoder_custom_args (lut_config )
254251
@@ -280,7 +277,6 @@ def test_configure_decoders_from_str_smoke():
280277 decoder_config .type = "nv-qldpc-decoder"
281278 decoder_config .block_size = 10
282279 decoder_config .syndrome_size = 3
283- decoder_config .num_syndromes_per_round = 3
284280 decoder_config .H_sparse = [1 , 2 , 3 , - 1 , 6 , 7 , 8 , - 1 , - 1 ]
285281 decoder_config .set_decoder_custom_args (nv )
286282 yaml_str = decoder_config .to_yaml_str ()
@@ -310,8 +306,9 @@ def test_configure_valid_decoders():
310306 dc .type = "multi_error_lut"
311307 dc .block_size = 10
312308 dc .syndrome_size = 3
313- dc .num_syndromes_per_round = 3
314309 dc .H_sparse = [1 , 2 , 3 , - 1 , 6 , 7 , 8 , - 1 , - 1 ]
310+ dc .D_sparse = qec .generate_timelike_sparse_detector_matrix (
311+ dc .syndrome_size , 2 , include_first_round = False )
315312 lut_config = qec .multi_error_lut_config ()
316313 lut_config .lut_error_depth = 2
317314 dc .set_decoder_custom_args (lut_config )
@@ -336,7 +333,6 @@ def test_configure_invalid_decoders():
336333 decoder_config .type = "invalid-decoder"
337334 decoder_config .block_size = 10
338335 decoder_config .syndrome_size = 3
339- decoder_config .num_syndromes_per_round = 3
340336 decoder_config .H_sparse = [1 , 2 , 3 , - 1 , 6 , 7 , 8 , - 1 , - 1 ]
341337 decoder_config .set_decoder_custom_args (nv )
342338
0 commit comments