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 some instruction utility methods #833

Merged
merged 2 commits into from
Sep 21, 2024
Merged

Add some instruction utility methods #833

merged 2 commits into from
Sep 21, 2024

Conversation

Strilanc
Copy link
Collaborator

  • stim.CircuitInstruction.__init__ now parses a single instruction line from a circuit file, if given one argument
  • stim.DemInstruction.__init__ now parses a single instruction line from a dem file, if given one argument
  • Add stim.CircuitRepeatBlock.num_measurements
  • Fix stim.CircuitInstruction.__init__ not validating its arguments form a valid instruction, until attempting to append it to a circuit
  • Add documentation examples to CircuitErrorLocationStackFrame methods

Fixes #797

Fixes #800

Fixes #801

- `stim.CircuitInstruction.__init__` now parses a single instruction line from a circuit file, if given one argument
- `stim.DemInstruction.__init__` now parses a single instruction line from a dem file, if given one argument
- Add `stim.CircuitRepeatBlock.num_measurements`
- Fix `stim.CircuitInstruction.__init__` not validating its arguments form a valid instruction, until attempting to append it to a circuit
- Add documentation examples to `CircuitErrorLocationStackFrame` methods

Fixes #797

Fixes #800

Fixes #801
@Strilanc Strilanc enabled auto-merge (squash) September 21, 2024 04:26
@Strilanc Strilanc disabled auto-merge September 21, 2024 04:44
@Strilanc Strilanc enabled auto-merge (squash) September 21, 2024 04:51
@Strilanc Strilanc merged commit 42b07a1 into main Sep 21, 2024
57 checks passed
@Strilanc Strilanc deleted the misc branch September 21, 2024 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant