Begin qct cpp