rabi.cpp (added get_initial_param)