Skip to content

Commit bb2fcaa

Browse files
authored
Update versions of Stim and PyMatching used (#29)
1 parent 4021e28 commit bb2fcaa

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ set(SIMD_WIDTH 128)
4343
include(FetchContent)
4444
FetchContent_Declare(stim
4545
GIT_REPOSITORY https://github.com/quantumlib/stim.git
46-
GIT_TAG da4594c5ede00a063ec2b84bd830f846b5d097dd)
46+
GIT_TAG 1320ad7eac7de34d2e9c70daa44fbc6d84174450) # v1.15.dev0 (what PyMatching 2.2.2 uses)
4747
FetchContent_GetProperties(stim)
4848
if(NOT stim_POPULATED)
4949
FetchContent_Populate(stim)
@@ -52,7 +52,7 @@ endif()
5252

5353
FetchContent_Declare(pymatching
5454
GIT_REPOSITORY https://github.com/oscarhiggott/pymatching.git
55-
GIT_TAG 40dcf8c01273ff7e23a7105d5cdc410ada067001)
55+
GIT_TAG 08f4f03fc876bd3e13351b677241fc2e160b8b38) # v2.2.2
5656
FetchContent_GetProperties(pymatching)
5757
if(NOT pymatching_POPULATED)
5858
FetchContent_Populate(pymatching)

WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
33

44
git_repository(
55
name = "stim",
6-
commit = "da4594c5ede00a063ec2b84bd830f846b5d097dd",
6+
commit = "1320ad7eac7de34d2e9c70daa44fbc6d84174450",
77
remote = "https://github.com/quantumlib/stim.git",
88
)
99

1010
git_repository(
1111
name = "pymatching",
12-
commit = "40dcf8c01273ff7e23a7105d5cdc410ada067001",
12+
commit = "08f4f03fc876bd3e13351b677241fc2e160b8b38",
1313
remote = "https://github.com/oscarhiggott/pymatching.git",
1414
)
1515

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# These are development requirements, not install requirements.
22
matplotlib ~= 3.5
33
numpy
4-
pymatching ~= 2.0
4+
pymatching ~= 2.2.2
55
pytest
66
scipy
77
sinter ~= 1.14

src/chromobius/decode/decoder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Decoder Decoder::from_dem(const stim::DetectorErrorModel &dem, DecoderConfigOpti
4848
if (result.mobius_dem.count_detectors() < result.node_colors.size() * 2) {
4949
// Ensure the number of detectors in the mobius dem is exactly correct.
5050
result.mobius_dem.append_detector_instruction(
51-
{}, stim::DemTarget::relative_detector_id(result.node_colors.size() * 2 - 1));
51+
{}, stim::DemTarget::relative_detector_id(result.node_colors.size() * 2 - 1), "");
5252
}
5353

5454
// For each node, pick nearby RGB representatives for holding charge near that node.

src/chromobius/graph/collect_composite_errors.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ void chromobius::collect_composite_errors_and_remnants_into_mobius_dem(
393393
// weight of the edge, which corresponds to squaring the probability.
394394
p *= p;
395395
}
396-
out_mobius_dem->append_error_instruction(p, composite_error_buffer);
396+
out_mobius_dem->append_error_instruction(p, composite_error_buffer, "");
397397
}
398398
});
399399
}

src/chromobius/graph/collect_nodes.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ static void collect_nodes_from_dem_helper_process_detector_instruction(
6363
stim::DemTarget d1 = stim::DemTarget::relative_detector_id(n * 2 + 1);
6464

6565
coord_buffer->back() = (double)g0;
66-
out_mobius_dem->append_detector_instruction(*coord_buffer, d0);
66+
out_mobius_dem->append_detector_instruction(*coord_buffer, d0, "");
6767
coord_buffer->back() = (double)g1;
68-
out_mobius_dem->append_detector_instruction(*coord_buffer, d1);
68+
out_mobius_dem->append_detector_instruction(*coord_buffer, d1, "");
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)