User:Fluffle-Prime/Quantum neural network

Sample model of a simple feed forward neural network. For a deep learning network, there will just be more hidden layers

Most QNN are developed as feed-forward networks. Similar to their classical counterparts, this structure intakes input from one layer of qubits, and passes that input onto another layer of qubits. This layer of qubits evaluates this information and passes on the output to thw next layer. Eventually the path leads to the final layer of qubits[1][2]. The layers do not have to be of the same width, meaning they don't have to have the same number of qubits as the layer before or after it. This structure is trained on which path to take similar to classical artificial neural networks. This is discussed in a lower section. Quantum neural networks refer to three different catagories: Quantum computer with classical data, classical computer with quantum data, and quantum computer with quantum data[1].

Training

edit

Quantum Neural Networks can be theoretically trained similarly to training classical/artificial neural networks. A key difference lies in communication between the layers of a neural networks. For classical neural networks, at the end of a given operation, the current perceptron copies its output to the next layer of perceptron(s) in the network. However, in a quantum neural network, where each perceptron is a qubit, this would violate the no-cloning theorem.[1][3] A proposed generalized solution to this is to replace the classical fan-out method with an arbitrary unitary that spreads out, but does not copy, the output of one qubit to the next layer of qubits. Using this fan-out Unitary (Uf) with a dummy state qubit in a known state (Ex. |0> in the computational basis), also known as an Ancilla bit, the information from the qubit can be transferred to the next layer of qubits[2]. This process adheres to the quantum operation requirement of reversibility[4][2].

Using this quantum feed-forward network, deep neural networks can be executed and trained efficiently . A deep neural network is essentially a network with many hidden-layers, as seen in the sample model neural network above. Since the QNN being discussed utilizes fan-out Unitary operators, and each operator only acts on its respective input, only two layers are used at any given time[1]. In other words, no Unitary operator is acting on the entire network at any given time, meaning the number of qubits required for a given step depends on the number of inputs in a given layer. Since Quantum Computers are notorious for their ability to run multiple iterations in a short period of time, the efficiency of a QNN is solely dependent on the number of qubits in any given layer, and not on the depth of the network[4].

Cost Functions

edit

To determine the effectiveness of a neural network, a cost function is used, which essentially measures the proximity of the network’s output to the expected or desired output. In a Classical Neural Network, the weights ( ) and biases ( ) at each step determine the outcome of the cost function  [1]. When training a Classical Neural network, the weights and biases are adjusted after each iteration, and given equation 1 below, where   is the desired output and   is the actual output, the cost function is optimized when   = 0. For a QNN, the cost function is determined by measuring the fidelity of the outcome state ( ) with the desired outcome state ( ), seen in Equation 2 below. In this case, the Unitary operators are adjusted after each iteration, and the cost function is optimized when C = 1[1].

Equation 1  
Equation 2  


  1. ^ a b c d e f Beer, Kerstin; Bondarenko, Dmytro; Farrelly, Terry; Osborne, Tobias J.; Salzmann, Robert; Scheiermann, Daniel; Wolf, Ramona (2020-02-10). "Training deep quantum neural networks". Nature Communications. 11 (1): 808. doi:10.1038/s41467-020-14454-2. ISSN 2041-1723.
  2. ^ a b c Wan, Kwok Ho; Dahlsten, Oscar; Kristjánsson, Hlér; Gardner, Robert; Kim, M. S. (2017-09-14). "Quantum generalisation of feedforward neural networks". npj Quantum Information. 3 (1): 1–8. doi:10.1038/s41534-017-0032-4. ISSN 2056-6387.
  3. ^ Nielsen, Michael A., 1974- (2010). Quantum computation and quantum information. Chuang, Isaac L., 1968- (10th anniversary ed ed.). Cambridge: Cambridge University Press. ISBN 978-1-107-00217-3. OCLC 665137861. {{cite book}}: |edition= has extra text (help)CS1 maint: multiple names: authors list (link) CS1 maint: numeric names: authors list (link)
  4. ^ a b Feynman, Richard P. (1986-06-01). "Quantum mechanical computers". Foundations of Physics. 16 (6): 507–531. doi:10.1007/BF01886518. ISSN 1572-9516.