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

Generic Initial State Computation #3

Open
ccoffrin opened this issue Feb 10, 2022 · 1 comment
Open

Generic Initial State Computation #3

ccoffrin opened this issue Feb 10, 2022 · 1 comment
Assignees

Comments

@ccoffrin
Copy link
Member

Add a tool that, given a specific annealing schedule or Hamiltonian, computes a ground state of the system at time 0 for starting the evolution process. This tool can be used when default_initial_state or default_dwave_initial_state do not provide a suitable starting point.

@zmorrell zmorrell self-assigned this Feb 10, 2022
@zmorrell
Copy link
Collaborator

@ccoffrin How do we want to do this considering that Annealing Schedules may have non-zero B(0) values (For example, most DWave schedules start with a very small, nonzero B(0))? We could either make the assumption that B(0) is 0, or we could find the lowest energy eigenstate of the input Hamiltonian, assuming that users would be wanting this behavior (otherwise they would just use the default DWave schedule or cook up their own initial state).

I am currently thinking of a function like

import LinearAlgebra
function compute_initial_state(annealing_schedule::AnnealingSchedule, ising_model::Dict)
    H = A(0) * X_component + B(0) * Z_component
    evals, evecs = LinearAlgebra.eigen(H)
    return evecs[:,1]
end

It should be noted that it looks like we would need to add Linear Algebra as a dependency. I think this is fine, since it will likely also be useful for #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants