Skip to content

Commit

Permalink
add cluster_node_limit for file decode interface
Browse files Browse the repository at this point in the history
  • Loading branch information
yuewuo committed Jan 19, 2025
1 parent 08ef277 commit b6029af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion glue/sample/src/sinter/_decoding/_decoding_mwpf.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,15 @@ def decode_via_files(
obs_predictions_b8_out_path: pathlib.Path,
tmp_dir: pathlib.Path,
decoder_cls: Any = None,
cluster_node_limit: int = 50,
) -> None:
import mwpf

error_model = stim.DetectorErrorModel.from_file(dem_path)
solver, fault_masks = detector_error_model_to_mwpf_solver_and_fault_masks(
error_model, decoder_cls=decoder_cls
error_model,
decoder_cls=decoder_cls,
cluster_node_limit=cluster_node_limit,
)
num_det_bytes = math.ceil(num_dets / 8)
with open(dets_b8_in_path, "rb") as dets_in_f:
Expand Down

0 comments on commit b6029af

Please sign in to comment.