The Fundamentals of Quantum Neural Networks