Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Mar 27, 2024
1 parent 53fd549 commit de7dd3c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions doc/python_api_reference_vDev.md
Original file line number Diff line number Diff line change
Expand Up @@ -4408,13 +4408,13 @@ def sample_write(
self,
shots: int,
*,
filepath: str,
format: str = '01',
filepath: Union[str, pathlib.Path],
format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01',
obs_out_filepath: Optional[Union[str, pathlib.Path]] = None,
obs_out_format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01',
prepend_observables: bool = False,
append_observables: bool = False,
obs_out_filepath: str = None,
obs_out_format: str = '01',
) -> None:
):
"""Samples detection events from the circuit and writes them to a file.
Args:
Expand Down
10 changes: 5 additions & 5 deletions doc/stim.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3367,13 +3367,13 @@ class CompiledDetectorSampler:
self,
shots: int,
*,
filepath: str,
format: str = '01',
filepath: Union[str, pathlib.Path],
format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01',
obs_out_filepath: Optional[Union[str, pathlib.Path]] = None,
obs_out_format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01',
prepend_observables: bool = False,
append_observables: bool = False,
obs_out_filepath: str = None,
obs_out_format: str = '01',
) -> None:
):
"""Samples detection events from the circuit and writes them to a file.
Args:
Expand Down
10 changes: 5 additions & 5 deletions glue/python/src/stim/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3367,13 +3367,13 @@ class CompiledDetectorSampler:
self,
shots: int,
*,
filepath: str,
format: str = '01',
filepath: Union[str, pathlib.Path],
format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01',
obs_out_filepath: Optional[Union[str, pathlib.Path]] = None,
obs_out_format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01',
prepend_observables: bool = False,
append_observables: bool = False,
obs_out_filepath: str = None,
obs_out_format: str = '01',
) -> None:
):
"""Samples detection events from the circuit and writes them to a file.
Args:
Expand Down
6 changes: 3 additions & 3 deletions src/stim/io/raii_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ namespace stim {
struct RaiiFile {
FILE* f;
bool responsible_for_closing;
RaiiFile(const char *optional_path, const char* mode);
RaiiFile(const char* optional_path, const char* mode);
RaiiFile(std::string_view optional_path, const char* mode);
RaiiFile(FILE* claim_ownership);
RaiiFile(const RaiiFile& other) = delete;
RaiiFile(RaiiFile&& other) noexcept;
~RaiiFile();
void open(std::string_view optional_path, const char *mode);
void open(const char *optional_path, const char *mode);
void open(std::string_view optional_path, const char* mode);
void open(const char* optional_path, const char* mode);
void done();
};

Expand Down
2 changes: 1 addition & 1 deletion src/stim/py/compiled_detector_sampler.pybind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void stim_pybind::pybind_compiled_detector_sampler_methods(
pybind11::arg("obs_out_filepath") = pybind11::none(),
pybind11::arg("obs_out_format") = "01",
clean_doc_string(R"DOC(
@signature def sample_write(shots: int, *, filepath: Union[str, pathlib.Path], format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01', obs_out_filepath: Optional[Union[str, pathlib.Path]] = None, obs_out_format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01', prepend_observables: bool = False, append_observables: bool = False):
@signature def sample_write(self, shots: int, *, filepath: Union[str, pathlib.Path], format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01', obs_out_filepath: Optional[Union[str, pathlib.Path]] = None, obs_out_format: 'Literal["01", "b8", "r8", "ptb64", "hits", "dets"]' = '01', prepend_observables: bool = False, append_observables: bool = False) -> None:
Samples detection events from the circuit and writes them to a file.
Args:
Expand Down

0 comments on commit de7dd3c

Please sign in to comment.