Simulation of an arbitrary quantum channel with minimal ancillary resource