q integrator