diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e82c634..7b65a688 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ FetchContent_MakeAvailable(googletest) FetchContent_Declare(stim GIT_REPOSITORY https://github.com/quantumlib/stim.git - GIT_TAG c135a6129963031b5c05f974e9c5e8def83f8316) + GIT_TAG eb08747ae2ad88d10e333e9304c082103469bdf7) FetchContent_MakeAvailable(stim) if (NOT (MSVC)) target_compile_options(libstim PRIVATE -fno-strict-aliasing -fPIC ${ARCH_OPT}) diff --git a/src/pymatching/sparse_blossom/driver/mwpm_decoding.test.cc b/src/pymatching/sparse_blossom/driver/mwpm_decoding.test.cc index 530859b2..036c35c3 100644 --- a/src/pymatching/sparse_blossom/driver/mwpm_decoding.test.cc +++ b/src/pymatching/sparse_blossom/driver/mwpm_decoding.test.cc @@ -56,7 +56,7 @@ DecodingTestCase load_test_case( fclose(dem_file); auto reader = stim::MeasureRecordReader::make( - shots_in, stim::SAMPLE_FORMAT_B8, 0, dem.count_detectors(), dem.count_observables()); + shots_in, stim::SampleFormat::SAMPLE_FORMAT_B8, 0, dem.count_detectors(), dem.count_observables()); std::ifstream is(find_test_data_file(weights_fn).c_str()); std::istream_iterator start(is), end; @@ -441,7 +441,7 @@ TEST(MwpmDecoding, NegativeEdgeWeightFromStim) { size_t num_distinct_weights = 1000; auto mwpm = pm::detector_error_model_to_mwpm(dem, num_distinct_weights); auto reader = stim::MeasureRecordReader::make( - shots_in, stim::SAMPLE_FORMAT_B8, 0, dem.count_detectors(), dem.count_observables()); + shots_in, stim::SampleFormat::SAMPLE_FORMAT_B8, 0, dem.count_detectors(), dem.count_observables()); stim::SparseShot sparse_shot; size_t num_mistakes = 0; @@ -474,7 +474,7 @@ TEST(MwpmDecoding, NegativeEdgeWeightFromStimDecodeToEdges) { size_t num_distinct_weights = 1000; auto mwpm = pm::detector_error_model_to_mwpm(dem, num_distinct_weights, true); auto reader = stim::MeasureRecordReader::make( - shots_in, stim::SAMPLE_FORMAT_B8, 0, dem.count_detectors(), dem.count_observables()); + shots_in, stim::SampleFormat::SAMPLE_FORMAT_B8, 0, dem.count_detectors(), dem.count_observables()); stim::SparseShot sparse_shot; size_t num_mistakes = 0; @@ -520,7 +520,7 @@ TEST(MwpmDecoding, InvalidSyndromeForToricCode) { size_t num_distinct_weights = 1000; auto mwpm = pm::detector_error_model_to_mwpm(dem, num_distinct_weights); auto reader = stim::MeasureRecordReader::make( - shots_in, stim::SAMPLE_FORMAT_B8, 0, dem.count_detectors(), dem.count_observables()); + shots_in, stim::SampleFormat::SAMPLE_FORMAT_B8, 0, dem.count_detectors(), dem.count_observables()); stim::SparseShot sparse_shot; size_t num_shots = 0;