Realistic simulation of quantum computation using unitary and measurement channels