Quantum-machine-learning channel discrimination