qrisp.cold.DCQOProblem.apply_cold_hamiltonian#

DCQOProblem.apply_cold_hamiltonian(qarg, N_steps, T, opt_params, CRAB=False)[source]#

Simulate counterdiabatic optimized local driving (COLD) Hamiltonian on a quantumvariable via trotterization. The COLD Hamiltonian consists of the system Hamiltonian, the adiabatic gauge potential (AGP) and local pulses (given by H_control) with optimized parameters.

Parameters:
qargQuantumVariable

The quantum argument to which the quantum circuit is applied.

N_stepsint

Number of steps in which the timefunction lambda is split up.

Tfloat

Evolution time for the simulation.

opt_paramslist

Either the optimized parameters or the corresponding sympy.Symbols.

CRABbool, optional

If True, the CRAB optimization method is being used. The default is False.