Skip to content

API for pattern optimisations including pre-simulation should be streamlined. #493

Description

@emlynsg

It is good both to be explicit with optimisations and to provide a simple API to allow regular users to run a common routine.

For future consideration and discussion:

  • Add transpile_swaps field to Circuit.transpile() to provide easy access to the transpile_swaps method
  • Add optimize method to Pattern which runs a chosen regular sequence of commands (likely some combination of standardize and minimize_space)
  • Add presimulate_paulis method to Pattern which runs the sequence of remove_input_nodes, infer_pauli_measurements and perform_pauli_measurements
  • Add a method to Pattern which applies in-place the infer_pauli_measurements method (to avoid the requirement to write pattern = pattern.infer_pauli_measurements().

Activity

  1. added this to the End of April milestone on Apr 29, 2026
  2. added
    new featureNew feature or request
    and removed
    new featureNew feature or request
    on Apr 29, 2026
  3. added theissue type on Apr 29, 2026
  4. added 2 commits that reference this issue on Sep 21, 2026
  5. linked a pull request that will close this issueFix #493: New base class `Simulable` #607on Sep 29, 2026
  6. added a commit that references this issue on Oct 9, 2026
    a1d2704
  7. added a commit that references this issue on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions