qat.opt.mixing_factory.InitialStateBuilder

class qat.opt.mixing_factory.InitialStateBuilder

A concept for an object that can modify an analog job in order to inject some particular initial state in the computation.

This interface requires implementation of a single method inject_initial_state that can modify a Job object in order to setup the correct initial state for a quantum annealing.

This method might simply modify the psi_0 field of the job, or prepend instructions to the job’s schedule.

abstract 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