An error mitigation software providing unbiased results for general quantum algorithms