  A general method to mitigate the effect of errors in quantum circuits is
outlined. The method is developed in sight of characteristics that an ideal
method should possess and to ameliorate an existing method which only mitigates
state preparation and measurement errors. The method is tested on different IBM
Q quantum devices, using randomly generated circuits with up to four qubits. A
large majority of results show significant error mitigation.
