Workshop 08 - Introduction to Quantum Artificial Neural Networks← Home → |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
Hybrid quantum-classical neural networksHybrid quantum-classical neural networks => implementing hidden layers with parameterized quantum circuits (circuits which rotation angles, for each gate, are specified by the components of a classical input vector).One could calculate the gradient as the difference between the circuit evaluated at θ + s and θ - s, where θ represents the circuit parameters, and s is a macroscopic shift. Thus, the circuit could be trained using gradient descent methods, such as backpropagation.
Artificial Neural Networks - Short ReviewArtificial Neural Networks - WorkshopQuantum Computing - Short ReviewQuantum Computing - WorkshopIBM Quantum Platform Quantum Gates exercises with emphasis on Bloch Sphere and the parametrized rotation gates: Rx, Ry, and Rz. Considering one qubit: Ψ = α|0> + eiφ β|1>, |α|2 + |β|2 = 1 One could obtain any value for α, respectively β, by employing the Ry gate.
For controling the relative phase angle φ, use the Rz gate.
Single qubit neural quantum circuit for solving Exclusive Or (XOR)Classical neurons are limited to linearly separable problems.For example, the XOR values cannot be separated by a line.
INTERESTING! "These dCaAPs enabled the dendrites of individual human neocortical pyramidal neurons to classify linearly nonseparable inputs - a computation conventionally thought to require multilayered networks." (Gidon et al Science 2020) Inspired by the previous study, a particular parametrized quantum circuit with two rotation gates was considered: RZ(θ1 * x1 + α), and RX(θ2 * x2 + α), where (x1, x2) is the input vector, (θ1, θ2) are the "dendrites" trainable weights, and α is also a trainable parameter.
IBM Quantum Platform For XOR, one solution could be immediately observed on the Bloch Sphere: θ1 = θ2 = π, for α = -π/2
It is interesting to notice that, within a reasonable error, the circuit could also classify noisy data:
In https://apps.dtic.mil/sti/trecms/pdf/AD1212942.pdf and A Quick Introduction to Quantum Machine Learning for Non-Practitioners (arXiv) (Dominic Byrne, Matthew G. Cook, and Ethan N. Evans) it has been demonstrated that the discussed circuit could be indeed trained using gradient descent algorithms. References:Learn quantum computation using QiskitIBM - Learn quantum computing IBM Quantum Platform Single qubit neural quantum circuit for solving Exclusive-OR Introduction to Quantum Computing |
||||||||||||||||||||||||||||||
|
← Home → |