Mitigating realistic noise in practical noisy intermediate-scale quantum devices