Quantum Pattern Recognition of Charged Particles