Move QMC to CPP