qat.opt.mixing_factory.IndependentAnnealing

class qat.opt.mixing_factory.IndependentAnnealing(start_ham, end_ham, tmax, true_psi_0)

An implementation of an InitialStateBuilder that prepend a problem independent annealing to the current annealing in order to prepare the correct initial state.

Parameters
  • start_ham (Observable) – the mixing Hamiltonian of the annealing

  • end_ham (Observable) – the target Hamiltonian of the annealing

  • tmax (float/expression) – the annealing time (or a variable/expression)

  • true_psi_0 (str/numpy.ndarray) – the initial state of the initial annealing

inject_initial_state(annealing_job)

Modifies in place an annealing job in order to prepare a particular initial state.

Parameters

annealing_job (qat.core.Job) – the job to modify