Skip to content

Commit

Permalink
Add sinter.TaskStats.with_edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Jul 30, 2024
1 parent da00d11 commit 9cb172e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/sinter_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ API references for stable versions are kept on the [stim github wiki](https://gi
- [`sinter.TaskStats`](#sinter.TaskStats)
- [`sinter.TaskStats.to_anon_stats`](#sinter.TaskStats.to_anon_stats)
- [`sinter.TaskStats.to_csv_line`](#sinter.TaskStats.to_csv_line)
- [`sinter.TaskStats.with_edits`](#sinter.TaskStats.with_edits)
- [`sinter.better_sorted_str_terms`](#sinter.better_sorted_str_terms)
- [`sinter.collect`](#sinter.collect)
- [`sinter.comma_separated_key_values`](#sinter.comma_separated_key_values)
Expand Down Expand Up @@ -829,6 +830,25 @@ def to_csv_line(
"""
```

<a name="sinter.TaskStats.with_edits"></a>
```python
# sinter.TaskStats.with_edits

# (in class sinter.TaskStats)
def with_edits(
self,
*,
strong_id: Optional[str] = None,
decoder: Optional[str] = None,
json_metadata: Optional[Any] = None,
shots: Optional[int] = None,
errors: Optional[int] = None,
discards: Optional[int] = None,
seconds: Optional[float] = None,
custom_counts: Optional[Counter[str]] = None,
) -> sinter.TaskStats:
```

<a name="sinter.better_sorted_str_terms"></a>
```python
# sinter.better_sorted_str_terms
Expand Down

0 comments on commit 9cb172e

Please sign in to comment.