Multipath correlation interference and controlled-NOT gate simulation with a thermal source