Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Generalize Hamiltonian #202

Open
3 tasks
zaqqwerty opened this issue Mar 4, 2022 · 0 comments
Open
3 tasks

Generalize Hamiltonian #202

zaqqwerty opened this issue Mar 4, 2022 · 0 comments
Assignees
Milestone

Comments

@zaqqwerty
Copy link
Contributor

zaqqwerty commented Mar 4, 2022

Dually to QuantumData, which is anything providing the context in which an expectation value of an operator can calculated, Hamiltonian should represent any operator whose expectation value can be calculated.

We probably don't want complete freedom in the representation, so I propose the following subclasses to address this:

  • ModularHamiltonian for any diagonalized representation. Ingested by SampledQuantumInference
    • BitstringEnergy for diagonal
    • QuantumCircuit for diagonalizing unitary
    • num_samples to say how many samples to use for each expectation calculation
  • AnalyticModularHamiltonian inheriting from ModularHamiltonian
    • has a list of converted cirq.PauliTerms which are in the Z basis; it is assumed that the QuantumCircuit already specifies the basis.
    • function to map expectation values of the terms to the overall expectation value. Thus this class only works for energy functions linear in the pauli terms Encapsulate cirq.PauliSum in Hamiltonian #164
  • ModularHamiltonianSum for a sum of ModularHamiltonian #234
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant