<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OJAppS</journal-id><journal-title-group><journal-title>Open Journal of Applied Sciences</journal-title></journal-title-group><issn pub-type="epub">2165-3917</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ojapps.2015.510060</article-id><article-id pub-id-type="publisher-id">OJAppS-60670</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Biomedical&amp;Life Sciences</subject><subject> Chemistry&amp;Materials Science</subject><subject> Computer Science&amp;Communications</subject><subject> Engineering</subject><subject> Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Quantum-Inspired Neural Network with Quantum Weights and Real Weights
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>uhua</surname><given-names>Shang</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>School of Computer and Information Technology, Northeast Petroleum University, Daqing, China</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>shangfh@sina.com</email></corresp></author-notes><pub-date pub-type="epub"><day>14</day><month>10</month><year>2015</year></pub-date><volume>05</volume><issue>10</issue><fpage>609</fpage><lpage>617</lpage><history><date date-type="received"><day>28</day>	<month>August</month>	<year>2015</year></date><date date-type="rev-recd"><day>accepted</day>	<month>25</month>	<year>October</year>	</date><date date-type="accepted"><day>28</day>	<month>October</month>	<year>2015</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  To enhance the approximation ability of neural networks, by introducing quantum rotation gates to the traditional BP networks, a novel quantum-inspired neural network model is proposed in this paper. In our model, the hidden layer consists of quantum neurons. Each quantum neuron carries a group of quantum rotation gates which are used to update the quantum weights. Both input and output layer are composed of the traditional neurons. By employing the back propagation algorithm, the training algorithms are designed. Simulation-based experiments using two application examples of pattern recognition and function approximation, respectively, illustrate the availability of the proposed model.
 
</p></abstract><kwd-group><kwd>Quantum Computing</kwd><kwd> Quantum Rotation Gate</kwd><kwd> Quantum-Inspired Neuron</kwd><kwd> Quantum-Inspired Neural Network</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In 1980s, Benioff firstly proposed the concept of quantum computation [<xref ref-type="bibr" rid="scirp.60670-ref1">1</xref>] . Shor discussed the first quantum algorithm of very large integer factorization [<xref ref-type="bibr" rid="scirp.60670-ref2">2</xref>] in 1994. In 1996, Grover explored an important quantum algorithm, which can search for a marked state in an unordered list [<xref ref-type="bibr" rid="scirp.60670-ref3">3</xref>] . Although the quantum machines are not yet technologically feasible, the quantum algorithms that can be applied on the quantum computers are indeed interesting and significantly different from the classical computing. As we know, fuzzy logic, evolutionary computation, and neural networks are regarded as intelligent computing (soft computing), and also have some comparability with the quantum computation [<xref ref-type="bibr" rid="scirp.60670-ref4">4</xref>] . Therefore, combination of these computing methods is emerging. Different from the Hebbian learning, a quantum neural network can be used for the enriched learning of neural networks. Proposed by Penrose in 1989 [<xref ref-type="bibr" rid="scirp.60670-ref5">5</xref>] , the idea of quantum information processing in the human brain was still a controversial theory, which has not been experimentally proved. However, the exploration of quantum information devices is a promising research topic, because of the enhanced capacity and speed from the quantum mechanism. With characteristics such as smaller size of quantum devices, larger capacity of quantum networks and faster information processing speed, a quantum neural network can mimic some distinguishing properties of the brain better than the classical neural networks, even if the real human brain does not even have any quantum element. In a word, the quantum neural networks have important research significance in both theory and engineering.</p><p>Since Kak firstly proposed the concept of quantum neural computation [<xref ref-type="bibr" rid="scirp.60670-ref6">6</xref>] in 1995, the quantum neural networks had attracted great attention during the past decade, and a large number of novel techniques had been studied for the quantum computation and neural networks. For example, Ref. [<xref ref-type="bibr" rid="scirp.60670-ref7">7</xref>] proposed the model of quantum neural networks with multi-level hidden neurons based on the superposition of quantum states in the quantum theory. Ref. [<xref ref-type="bibr" rid="scirp.60670-ref8">8</xref>] proposed a neural network model with quantum gated nodes and a smart algorithm for it, which showed superior performance in comparison with a standard error back propagation network. Ref. [<xref ref-type="bibr" rid="scirp.60670-ref9">9</xref>] proposed a weightless model based on quantum circuit. It is not only quantum-inspired but is actually a quantum NN. This model is based on Grover’s search algorithm, and it can perform both quantum learning and simulate the classical models. Ref. [<xref ref-type="bibr" rid="scirp.60670-ref10">10</xref>] proposes the neural networks with the quantum gated nodes, and indicates that such quantum networks may contain more advantageous features from the biological systems than the regular electronic devices. Ref. [<xref ref-type="bibr" rid="scirp.60670-ref11">11</xref>] have proposed a quantum BP neural networks model with learning algorithm based on the single-qubit rotation gates and two-qubit controlled-NOT gates.</p><p>In this paper, we study a new hybrid quantum-inspired neural networks model with quantum weights and real weights. Our scheme is a three-layer model with a hidden layer, which employs the gradient descent principle for learning. The input/output relationship of this model is derived based on the physical meaning of the quantum gates. The convergence rate, number of iterations, and approximation error of the quantum neural networks are examined with different restriction error and restriction iterations. Three application examples demonstrate that this quantum-inspired neural network is superior to the classical BP networks.</p></sec><sec id="s2"><title>2. Quantum-Inspired Neural Network Model</title><sec id="s2_1"><title>2.1. Qubits and Quantum Rotation Gate</title><p>In the quantum computers, the “qubit” has been introduced as the counterpart of the “bit” in the conventional computers to describe the states of the circuit of quantum computation. The two quantum physical states labeled as <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x5.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x6.png" xlink:type="simple"/></inline-formula> express 1 bit information, in which <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x7.png" xlink:type="simple"/></inline-formula> corresponds to the bit 0 of classical computers, while <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x8.png" xlink:type="simple"/></inline-formula> bit 1. Notation of “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x9.png" xlink:type="simple"/></inline-formula>” is called the Dirac notation, which is the standard notation for the states in the quantum mechanics. The difference between bits and qubits is that a qubit can be in a state other than <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x10.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x11.png" xlink:type="simple"/></inline-formula>. It is also possible to form the linear combinations of the states, namely superpositions</p><disp-formula id="scirp.60670-formula1565"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x12.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x13.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x14.png" xlink:type="simple"/></inline-formula> are complex numbers, called probability amplitudes. That is, the qubit state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x15.png" xlink:type="simple"/></inline-formula> collapses into either <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x16.png" xlink:type="simple"/></inline-formula> state with probability<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x17.png" xlink:type="simple"/></inline-formula>, or <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x18.png" xlink:type="simple"/></inline-formula> state with probability<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x19.png" xlink:type="simple"/></inline-formula>, and we have</p><disp-formula id="scirp.60670-formula1566"><label>. (2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x20.png"  xlink:type="simple"/></disp-formula><p>Hence, the qubit can be described by the probability amplitudes as<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x21.png" xlink:type="simple"/></inline-formula>.</p><p>Suppose we have n qubits, and correspondingly, a n qubits system has <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x22.png" xlink:type="simple"/></inline-formula> computational basis states. Similar to the case of a single qubit, the n qubits system may form the superpositions of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x23.png" xlink:type="simple"/></inline-formula> basis states:</p><disp-formula id="scirp.60670-formula1567"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x24.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x25.png" xlink:type="simple"/></inline-formula> is called probability amplitude of the basis states<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x26.png" xlink:type="simple"/></inline-formula>, and “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x27.png" xlink:type="simple"/></inline-formula>” means “the set of strings of length two with each letter being either zero or one”. The condition that these probabilities can sum to one is expressed by the normalization condition</p><disp-formula id="scirp.60670-formula1568"><label>. (4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x28.png"  xlink:type="simple"/></disp-formula><p>In the quantum computation, the logic function can be realized by applying a series of unitary transform to the qubit states, which the effect of the unitary transform is equal to that of the logic gate. Therefore, the quantum services with the logic transformations in a certain interval are called the quantum gates, which are the basis of performing the quantum computation.</p><p>The definition of a single qubit rotation gate is given</p><disp-formula id="scirp.60670-formula1569"><label>. (5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x29.png"  xlink:type="simple"/></disp-formula><p>Let the quantum state<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x30.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x31.png" xlink:type="simple"/></inline-formula> can be transformed by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x32.png" xlink:type="simple"/></inline-formula> as follows:</p><disp-formula id="scirp.60670-formula1570"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x33.png"  xlink:type="simple"/></disp-formula><p>It is obvious that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x34.png" xlink:type="simple"/></inline-formula> shifts the phase of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x35.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s2_2"><title>2.2. Quantum-Inspired Neuron Model</title><p>A neuron can be described as a four elements array: (input, weight, transform function, output), where input and output is the outer attribute of the neuron, and weight and transform function are the inner attribute of the neuron. Therefore, the different neuron models can be constructed by modifying types of weight and transform function. According this viewpoint, for the quantum-inspired neuron proposed in this paper, the weights are represented by qubits, and the transform function is represented by inner-product operator. The difference from the traditional neuron is that the quantum-inspired neuron carries a group of single-bit quantum gates that modify the phase of quantum weights. The quantum-inspired neuron model is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>In quantum-inspired neuron model, the weights are represented by qubits<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x36.png" xlink:type="simple"/></inline-formula>. Let <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x37.png" xlink:type="simple"/></inline-formula> is the input real vector, y is an output real number, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x38.png" xlink:type="simple"/></inline-formula>is the quantum weight, the input/output relation of quantum-inspired neuron can be described as follows:</p><disp-formula id="scirp.60670-formula1571"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x39.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x40.png" xlink:type="simple"/></inline-formula> is an inner product operator, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x41.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x42.png" xlink:type="simple"/></inline-formula>, the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x43.png" xlink:type="simple"/></inline-formula> is a quantum rotation gate to modify the phase of the<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x44.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s2_3"><title>2.3. Quantum-Inspired Neural Network Model</title><p>Quantum-inspired Neural Network (QINN) is defined as the model that all the input, output, and linked weights for each layer may be qubits. The QINN structure is the same as the general ANN which includes input layer, hidden layer, and output layer. Obvious, the network including neuron in <xref ref-type="fig" rid="fig1">Figure 1</xref> is QINN. The QINN only including quantum neurons is defined as the normalization QINN, and the QINN including quantum neurons and general neurons is defined as the hybrid QINN. Since QINN transform function adopts linear operator, the non-</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Quantum-inspired neuron model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-2310483x45.png"/></fig><p>linear mapping capability falls under restriction. Therefore, this paper considers the hybrid QINN (HQINN) including a hidden layer of quantum neuron, which holds the advantage of the quantum computing and the nonlinear mapping capability of the general ANN. HQINN model is presented in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>The model includes three layers, the input layer and output layer contains n and m general neurons, respectively, and the hidden layer contains p quantum-inspired neurons. The input/output relation can be described as follows:</p><disp-formula id="scirp.60670-formula1572"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x46.png"  xlink:type="simple"/></disp-formula><p>where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x47.png" xlink:type="simple"/></inline-formula>;<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x48.png" xlink:type="simple"/></inline-formula>;<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x49.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x50.png" xlink:type="simple"/></inline-formula>is the linked weight between the jth neuron in hidden layer and the kth neuron in output layer, g is the Sigmoid function or Gauss function.</p></sec><sec id="s2_4"><title>2.4. Learning Algorithm</title><p>For the HQINN in <xref ref-type="fig" rid="fig2">Figure 2</xref>, when transform function in output layer is continuous and differentiable, the learning algorithm may adopt BP algorithm. The output error function is defined as follows:</p><disp-formula id="scirp.60670-formula1573"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x51.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x52.png" xlink:type="simple"/></inline-formula> represents the desired output.</p><p>According to BP algorithm, the modifying formula for output layer weight is described as follows:</p><disp-formula id="scirp.60670-formula1574"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x53.png"  xlink:type="simple"/></disp-formula><p>where, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x54.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x55.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x56.png" xlink:type="simple"/></inline-formula>represents the learning ratio, and t represents the iteration steps.</p><p>The weights between the input layer and quantum hidden layer are modified by quantum rotation gates described as follows:</p><disp-formula id="scirp.60670-formula1575"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x57.png"  xlink:type="simple"/></disp-formula><p>where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x58.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x58.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x59.png" xlink:type="simple"/></inline-formula>. According BP algorithm, the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x58.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x59.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x60.png" xlink:type="simple"/></inline-formula> can be gained from the following formula.</p><disp-formula id="scirp.60670-formula1576"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x61.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x62.png" xlink:type="simple"/></inline-formula> is the phase of the<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x62.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x63.png" xlink:type="simple"/></inline-formula>. For<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x62.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x63.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x64.png" xlink:type="simple"/></inline-formula>, the modifying formula is described as follows.</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Hybrid quantum-inspired neural network model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-2310483x65.png"/></fig><disp-formula id="scirp.60670-formula1577"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x66.png"  xlink:type="simple"/></disp-formula><p>Let the vector<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x67.png" xlink:type="simple"/></inline-formula>, the modifying formula of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x68.png" xlink:type="simple"/></inline-formula> is described as follows:</p><disp-formula id="scirp.60670-formula1578"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x69.png"  xlink:type="simple"/></disp-formula><p>where t represents the iteration steps.</p><p>Synthesizing above depiction, the HQINN learning algorithm can be described as follows:</p><p>Step 1: Initialize network parameters. Include: The number of nodes in each layer, the learning ratio, the restriction error<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x70.png" xlink:type="simple"/></inline-formula>, the restriction steps<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x71.png" xlink:type="simple"/></inline-formula>. Set the current steps<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x72.png" xlink:type="simple"/></inline-formula>.</p><p>Step 2: Initialize network weights. Hidden layer:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x73.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x74.png" xlink:type="simple"/></inline-formula>, and output layer:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x75.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x76.png" xlink:type="simple"/></inline-formula> is a random number in (0,1), <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x77.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x78.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x78.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x79.png" xlink:type="simple"/></inline-formula>.</p><p>Step 3: Compute network outputs according to Equation (8), modifying the weights of each layer according to Equation (10) and Equation (14), respectively.</p><p>Step 4: Compute network output error according to Equation (9), if <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x80.png" xlink:type="simple"/></inline-formula> or <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x81.png" xlink:type="simple"/></inline-formula> then go to Step 5，else<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x81.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x82.png" xlink:type="simple"/></inline-formula>, go back to Step 3.</p><p>Step 5: Save the weights, and stop 3.</p></sec></sec><sec id="s3"><title>3. Simulations</title><p>To testify the validity of HQINN, two kinds of experiments are designed and the HQINN is compared with the classical BP network in this section. In two experiments, the HQINN adopts the same structure and parameters as the BP network.</p><sec id="s3_1"><title>3.1. Twenty-Five Sample Patterns Classification</title><p>For twenty-five sample points in <xref ref-type="fig" rid="fig3">Figure 3</xref>, determine the pattern of each point by HQINN. This is a typical two-pattern classification problem, which is regard as the generalization of XOR problem.</p><p>The network construct is set to 2-10-1 , and the learning ratio is set to 0.8. The HQINN and the BP network are learned 50 times, restively, and then compute the average of iteration steps. Training results are shown in <xref ref-type="table" rid="table1">Table 1</xref>. When the restriction error takes 0.05, the convergence curves are shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Twenty-five pattern classification samples</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-2310483x83.png"/></fig><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> The convergence curve comparison</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-2310483x84.png"/></fig><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> The training results comparison between HQINN and BP network for 25 sample patterns classification</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Restriction error</th><th align="center" valign="middle"  rowspan="2"  >Restriction steps</th><th align="center" valign="middle"  colspan="2"  >HQINN</th><th align="center" valign="middle"  colspan="2"  >BP</th></tr></thead><tr><td align="center" valign="middle" >Iteration steps</td><td align="center" valign="middle" >Convergence ratio</td><td align="center" valign="middle" >Iteration steps</td><td align="center" valign="middle" >Convergence ratio</td></tr><tr><td align="center" valign="middle" >0.10</td><td align="center" valign="middle" >1000</td><td align="center" valign="middle" >583</td><td align="center" valign="middle" >90%</td><td align="center" valign="middle" >1000</td><td align="center" valign="middle" >Non-convergence</td></tr><tr><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >2000</td><td align="center" valign="middle" >1131</td><td align="center" valign="middle" >84%</td><td align="center" valign="middle" >2000</td><td align="center" valign="middle" >Non-convergence</td></tr><tr><td align="center" valign="middle" >0.01</td><td align="center" valign="middle" >10000</td><td align="center" valign="middle" >8893</td><td align="center" valign="middle" >82%</td><td align="center" valign="middle" >10000</td><td align="center" valign="middle" >Non-convergence</td></tr></tbody></table></table-wrap></sec><sec id="s3_2"><title>3.2. Double Spiral Curves Classification</title><p>For two spiral curve in <xref ref-type="fig" rid="fig5">Figure 5</xref>, fetch 30 points from each curve, respectively, compose the sample set containing 50 sample points, and classify these points in sample set by HQINN.</p><p>The network construct is 2-20-1 , and the learning ratio is 0.7. The HQINN and the BP network are training 30 times, restively, and then compute the average of iteration steps. Training results are shown in <xref ref-type="table" rid="table2">Table 2</xref>. When the restriction error takes 0.10, the convergence curves are shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p></sec><sec id="s3_3"><title>3.3. Function Approximation</title><p>In this simulation, such function is selected as follow:</p><disp-formula id="scirp.60670-formula1579"><label>(20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-2310483x85.png"  xlink:type="simple"/></disp-formula><p>where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x86.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x86.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x87.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x86.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-2310483x88.png" xlink:type="simple"/></inline-formula> are integers in the set {1, 2, 3, 4, 5}.</p><p>To approximate the nonlinear function, we sample 40 groups of discrete data, half of which is used to train networks and the other half to test its performance. Set the maximum of iteration steps 5000. By changing the number of hidden neurons and the learning coefficient, we present an experimental evaluation of HQINN’s and compare their performance with that of the other algorithms. This example is simulated 30 times for each group of parameters by the HQINN, the BP, and the algorithm in Ref. [<xref ref-type="bibr" rid="scirp.60670-ref12">12</xref>] , respectively. When the number of hidden neurons is 6 and 8, the training result are presented in <xref ref-type="table" rid="table3">Table 3</xref> and <xref ref-type="table" rid="table4">Table 4</xref>.</p><p>Firstly, we investigate how to change for the average convergence rate when the learning coefficient changes. The networks structure is 3-5-1 , the restriction error is 0.1, and the restriction iteration steps are 5000. The learning coefficient set is {0.1, 0.2, …, 1.0}. This example is simulated 30 times for each learning coefficient by the HQINN and the BP respectively. When the learning coefficient changes the average convergence ratio of HQINN always is 100% and is insensitive to the learning coefficient. However, the average convergence ratio of BP changes in a large range when the learning coefficient changes. The maximum of average convergence ratio of BP reaches to 80%, and the minimum is only 10%. The comparison result is shown in <xref ref-type="fig" rid="fig7">Figure 7</xref>.</p><p>The comparison result shows that the HQINN is evidently superior to the BP in both the average convergence ratio and the robustness.</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Double spiral curves</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-2310483x89.png"/></fig><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> The convergence curve comparison</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-2310483x90.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> The relationship between the average convergence rate and the learning coefficient</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-2310483x91.png"/></fig><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> The training results comparison between HQINN and BP network for double spiral curves classification</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Restriction error</th><th align="center" valign="middle"  rowspan="2"  >Restriction steps</th><th align="center" valign="middle"  colspan="2"  >HQINN</th><th align="center" valign="middle"  colspan="3"  >BP</th></tr></thead><tr><td align="center" valign="middle" >Iteration steps</td><td align="center" valign="middle" >Convergence ratio</td><td align="center" valign="middle" >Iteration steps</td><td align="center" valign="middle" >Convergence ratio</td><td align="center" valign="middle" >Necessary steps for convergence</td></tr><tr><td align="center" valign="middle" >0.10</td><td align="center" valign="middle" >2000</td><td align="center" valign="middle" >871</td><td align="center" valign="middle" >82%</td><td align="center" valign="middle" >2000</td><td align="center" valign="middle" >Non-convergence</td><td align="center" valign="middle" >3961</td></tr><tr><td align="center" valign="middle" >0.05</td><td align="center" valign="middle" >10000</td><td align="center" valign="middle" >6893</td><td align="center" valign="middle" >92%</td><td align="center" valign="middle" >8631</td><td align="center" valign="middle" >76%</td><td align="center" valign="middle" >―</td></tr></tbody></table></table-wrap><p>Secondly, we investigate how to change for the average iteration steps when the learning coefficient changes. The networks structure is 3-5-1 , and the restriction error is 0.1. The learning coefficient set is still {0.1, 0.2, …, 1.0}. This example is simulated 30 times for each learning coefficient by the HQINN and the BP, respectively. When the learning coefficient changes, for the average iteration steps of HQINN, the maximum is 958 steps, the minimum is 496 steps, and the average is 693 steps. However, for the average iteration steps of BP, the maximum is 4619 steps, the minimum is 1532 steps, and the average is 2489 steps. Hence, the performance of HQINN is evidently superior to BP in both the average iteration steps and its fluctuation range when the learning coefficient changes. The comparison result is shown in <xref ref-type="fig" rid="fig8">Figure 8</xref>.</p><p>The comparison results show that the HQINN is evidently superior to the BP in both the average iteration steps and the robustness.</p></sec></sec><sec id="s4"><title>4. Conclusion</title><p>The HQINN is the amalgamation of quantum computing and nerve computing, which holds the advantage such as parallelism and high efficiency of quantum computation besides continuity, approximation capability, and generalization capability that the classical ANN holds. In HQINN, the weights are represented by qubits, and the phase of each qubit is modified by the quantum rotation gate. Since both probability amplitudes participate in optimizing computation, the computation capability is evidently superior to the classical BP network. Experimental results show that the HQINN model proposed in this paper is effective.</p><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> The relationship between the average iteration steps and the learning coefficient</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-2310483x92.png"/></fig><p>Table3. The simulation result for the nonlinear function approximation (the number of hidden neurons is 6).</p><p>Table4. The simulation result for the nonlinear function approximation (the number of hidden neurons is 8).</p></sec><sec id="s5"><title>Acknowledgements</title><p>This work was supported by the National Natural Science Foundation of China (Grant No. 61170132), the Scientific research and technology development project of CNPC (2013E-3809), and the Major National Science and Technology Program (2011ZX05020-007).</p></sec><sec id="s6"><title>Cite this paper</title><p>FuhuaShang, (2015) Quantum-Inspired Neural Network with Quantum Weights and Real Weights. Open Journal of Applied Sciences,05,609-617. doi: 10.4236/ojapps.2015.510060</p></sec></body><back><ref-list><title>References</title><ref id="scirp.60670-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Benioff, P. (1982) Quantum Mechanical Hamiltonian Models of Turing Machines. Journal of Statistical Physics, 3, 515-546. http://dx.doi.org/10.1007/BF01342185</mixed-citation></ref><ref id="scirp.60670-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Shor, P.W. (1994) Algorithms for Quantum Computation: Discrete Logarithms and Factoring. Proceedings of the 35th Annual Symposium on Foundations of Computer Science, Santa Fe, 20-22 November 1994, 124-134.  
http://dx.doi.org/10.1109/SFCS.1994.365700</mixed-citation></ref><ref id="scirp.60670-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Grover, L.K. (1996) A Fast Quantum Mechanical Algorithm for Database Search, Proceedings of the 28th Annual ACM Symposium on the Theory of Computing, Pennsylvania, May 1996, 212-219.&lt;br /&gt;  
http://dx.doi.org/10.1145/237814.237866</mixed-citation></ref><ref id="scirp.60670-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Penrose, R. (1994) Shadows of the Mind: A Search for the Missing Science of Consciousness. Oxford University Press, London, 196-201.</mixed-citation></ref><ref id="scirp.60670-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Penrose, R. (1989) The Emperor’s New Mind: Concerning Computers, Minds, and the Laws of Physics. Oxford University Press, London, 89-93.</mixed-citation></ref><ref id="scirp.60670-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Kak, S. (1995) On Quantum Neural Computing. Information Sciences, 83, 143-160. &lt;br /&gt; 
http://dx.doi.org/10.1016/0020-0255(94)00095-S</mixed-citation></ref><ref id="scirp.60670-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Gopathy, P. and Nicolaos B.K. (1997) Quantum Neural Networks (QNN’s): Inherently Fuzzy Feed Forward Neural Networks. IEEE Transactions on Neural Networks, 8, 679-693. &lt;br /&gt;http://dx.doi.org/10.1109/72.572106</mixed-citation></ref><ref id="scirp.60670-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Li, P.C., Song, K.P. and Yang, E.L. (2010) Model and Algorithm of Neural Network with Quantum Gated Nodes. Neural Network World, 11, 189-206.</mixed-citation></ref><ref id="scirp.60670-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Adenilton, J., Wilson, R. and Teresa, B. (2012) Classical and Superposed Learning for Quantum Weightless Neural Network, Neurocomputing, 75, 52-60. http://dx.doi.org/10.1016/j.neucom.2011.03.055</mixed-citation></ref><ref id="scirp.60670-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Shafee, F. (2007) Neural Networks with Quantum Gated Nodes. Engineering Applications of Artificial Intelligence, 20, 429-437. http://dx.doi.org/10.1016/j.engappai.2006.09.004</mixed-citation></ref><ref id="scirp.60670-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Li, P.C. and Li, S.Y. (2008) Learning Algorithm and Application of Quantum BP Neural Networks Based on Universal Quantum gates. Journal of Systems Engineering and Electronics, 19, 167-174.&lt;br /&gt;  
http://dx.doi.org/10.1016/S1004-4132(08)60063-8</mixed-citation></ref><ref id="scirp.60670-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Zweiri, Y.H., Whidborne, J.F. and Seneviratne, L.D. (2003) A Three-Term Backpropagation Algorithm. Neurocomputing, 50, 305-318. http://dx.doi.org/10.1016/S0925-2312(02)00569-6</mixed-citation></ref></ref-list></back></article>