Quantum learning with noise and decoherence: a robust quantum neural network