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

Add stimcirq tag conversions #866

Merged
merged 5 commits into from
Dec 5, 2024
Merged
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
5 changes: 5 additions & 0 deletions doc/python_api_reference_vDev.md
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@ def append(
name: str,
targets: Union[int, stim.GateTarget, Iterable[Union[int, stim.GateTarget]]],
arg: Union[float, Iterable[float]],
*,
tag: str = "",
) -> None:
pass
@overload
Expand All @@ -844,6 +846,8 @@ def append(
name: object,
targets: object = (),
arg: object = None,
*,
tag: str = '',
) -> None:
"""Appends an operation into the circuit.

Expand Down Expand Up @@ -894,6 +898,7 @@ def append(
compatibility reasons, `cirq.append_operation` (but not
`cirq.append`) will default to a single 0.0 argument for gates that
take exactly one argument.
tag: A customizable string attached to the instruction.
"""
```

Expand Down
7 changes: 7 additions & 0 deletions doc/stim.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ class Circuit:
name: str,
targets: Union[int, stim.GateTarget, Iterable[Union[int, stim.GateTarget]]],
arg: Union[float, Iterable[float]],
*,
tag: str = "",
) -> None:
pass
@overload
Expand All @@ -316,6 +318,8 @@ class Circuit:
name: object,
targets: object = (),
arg: object = None,
*,
tag: str = '',
) -> None:
"""Appends an operation into the circuit.

Expand Down Expand Up @@ -366,6 +370,7 @@ class Circuit:
compatibility reasons, `cirq.append_operation` (but not
`cirq.append`) will default to a single 0.0 argument for gates that
take exactly one argument.
tag: A customizable string attached to the instruction.
"""
def append_from_stim_program_text(
self,
Expand Down Expand Up @@ -398,6 +403,8 @@ class Circuit:
name: object,
targets: object = (),
arg: object = None,
*,
tag: str = '',
) -> None:
"""[DEPRECATED] use stim.Circuit.append instead
"""
Expand Down
Loading
Loading