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 iterator-access methods to SparseObservable #13370

Merged
merged 3 commits into from
Nov 5, 2024

Commits on Oct 30, 2024

  1. Add iterator-access methods to SparseObservable

    This adds a new related class, `SparseObservable.Term` to be the item
    type of the iteration methods, and imbibes it with the simplest
    mathematical binary relations with `SparseObservable` as the other
    operand.
    
    For some reason, in my head, the methods to convert terms and
    observables to their corresponding Pauli basis are related to iteration?
    The `SparseObservable.pauli_bases` and
    `SparseObservable.Term.pauli_base` methods perform a similar bitwise
    trick to do this reduction as exemplified in the documentation, but
    return the other `quantum_info`-native classes `PauliList` and `Pauli`,
    respectively.  These methods are expected to be used by the primitives.
    jakelishman committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    0aa0080 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. Improve documentation

    jakelishman committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    806f7cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79e78d8 View commit details
    Browse the repository at this point in the history