qat.opt.mixing_factory.IndependentAQO
- class qat.opt.mixing_factory.IndependentAQO(start_ham, end_ham, tmax, true_psi_0)
An implementation of an
InitialStateBuilder
that prepends a problem independent adiabatic quantum optimization to the current AQO in order to prepare the correct initial state.- Parameters
start_ham (
Observable
) – the mixing Hamiltonian of the AQOend_ham (
Observable
) – the target Hamiltonian of the AQOtmax (float/expression) – the AQO time (or a variable/expression)
true_psi_0 (str/numpy.ndarray) – the initial state of the initial AQO
- inject_initial_state(aqo_job)
Modifies in place an AQO job in order to prepare a particular initial state.
- Parameters
aqo_job (
qat.core.Job
) – the job to modify