Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump stim dependency #82

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
8 changes: 4 additions & 4 deletions src/pymatching/sparse_blossom/driver/mwpm_decoding.test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DecodingTestCase load_test_case(
fclose(dem_file);

auto reader = stim::MeasureRecordReader<stim::MAX_BITWORD_WIDTH>::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<int> start(is), end;
Expand Down Expand Up @@ -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<stim::MAX_BITWORD_WIDTH>::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;
Expand Down Expand Up @@ -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<stim::MAX_BITWORD_WIDTH>::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;
Expand Down Expand Up @@ -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<stim::MAX_BITWORD_WIDTH>::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;
Expand Down
Loading