Add detector error model sampling with error recording - #300
Merged
Merged
Conversation
- Add stim.DetectorErrorModel.flattened - Add stim.DetectorErrorModel.rounded - Fix documented type signatures of to_file/from_file methods
- Change stim::DetectorErrorModel::rounded to only round probabilities not coordinates - Add some cleanup flexibility to `stim::RaiiFile` (manual done, manual donotclose) - Add `stim::DemSampler` - Add read_contents/write_contents to test utility `RaiiTempNamedFile`
- Add `stim::MeasureRecordReader::read_into_table_with_minor_shot_index` - Add `stim::read_file_data_into_shot_table` - Add `stim::RaiiFile(RaiiFile&&)` - Add `--err_out`,`--err_out_format`,`--replay_err_in`,`--replay_err_in_format` floats to `stim sample_dem` - Add error recording and replaying to DemSampler - Move more pybind methods into stim_pybind - Add `stim.DetectorErrorModel.compile_sampler` - Add `stim.DemSampler.sample` - Add `stim.DemSampler.sample_write`
|
Hi Craig, is this function stim.DetectorErrorModel.compile_sampler now available? Having the error data would be useful! |
Collaborator
Author
|
@SamuelTan97 If you install the latest development version ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Example:
Python changes:
stim.DetectorErrorModel.flattenedstim.DetectorErrorModel.roundedstim.DetectorErrorModel.compile_samplerstim.CompiledDemSamplerclassstim.CompiledDemSampler.samplestim.CompiledDemSampler.sample_writeDoc hanges:
to_file/from_filemethodsC++ changes:
stim_pybindnamespacestim::MeasureRecordReader::read_into_table_with_major_shot_indexstim::MeasureRecordReader::read_into_table_with_minor_shot_indexstim::read_file_data_into_shot_tablestim::RaiiFile(RaiiFile&&)stim::DemSamplerstim sample_demcommand line command--err_out,--err_out_format,--replay_err_in,--replay_err_in_formatflags forstim sample_demstim::RaiiFile(manual done, manual donotclose)read_contents/write_contentsto test utilityRaiiTempNamedFilestim::DetectorErrorModel::roundedto only round probabilities not coordinatesFixes #80
Fixes #297