<?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">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2016.79088</article-id><article-id pub-id-type="publisher-id">AM-66957</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  1-Way Multihead Quantum Finite State Automata
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>ebayan</surname><given-names>Ganguly</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kingshuk</surname><given-names>Chatterjee</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kumar</surname><given-names>Sankar Ray</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Electronics and Communication Sciences Unit, Indian Statistical Institute, Kolkata, India</addr-line></aff><pub-date pub-type="epub"><day>26</day><month>05</month><year>2016</year></pub-date><volume>07</volume><issue>09</issue><fpage>1005</fpage><lpage>1022</lpage><history><date date-type="received"><day>6</day>	<month>April</month>	<year>2016</year></date><date date-type="rev-recd"><day>accepted</day>	<month>28</month>	<year>May</year>	</date><date date-type="accepted"><day>31</day>	<month>May</month>	<year>2016</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>
 
 
  1-way multihead quantum finite state automata (1QFA(k)) can be thought of modified version of 1-way quantum finite state automata (1QFA) and k-letter quantum finite state automata (k-letter QFA) respectively. It has been shown by Moore and Crutchfield as well as Konadacs and Watrous that 1QFA can’t accept all regular language. In this paper, we show different language recognizing capabilities of our model 1-way multihead QFAs. New results presented in this paper are the following ones: 1) We show that newly introduced 1-way 2-head quantum finite state automaton (1QFA(2)) structure can accept all unary regular languages. 2) A language which can’t be accepted by 1-way deterministic 2-head finite state automaton (1DFA((2)) can be accepted by 1QFA(2) with bounded error. 3) 1QFA(2) is more powerful than 1-way reversible 2-head finite state automaton (1RMFA(2)) with respect to recognition of language.
 
</p></abstract><kwd-group><kwd>1-Way Quantum Finite State Automaton (1QFA)</kwd><kwd> k-Letter Quantum Finite State Automata (k-Letter QFA)</kwd><kwd> 1-Way Multihead Quantum Finite State Automaton (1QFA(k))</kwd><kwd> 1-Way Deterministic 2-Head Finite State Automaton (1DFA((2))</kwd><kwd> 1-Way Reversible Multihead Finite State Automaton (1RMFA(k))</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Classical finite state automaton is the very basic model of classical finite machine. Likewise a quantum finite state automaton may be seen as basic model of finite state quantum machine. A variety of models of quantum finite state automaton are used. 1-way quantum finite automaton (1QFA) can be seen as the simplest model of quantum automaton .The two most popular models of quantum finite state automaton are quantum finite state automaton introduced by Moore and Crutchfield [<xref ref-type="bibr" rid="scirp.66957-ref1">1</xref>] (measure once quantum finite state automaton) and quan- tum finite state automaton introduced by Kondacs and Watrous [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] (measure many quantum finite state auto- maton). They have seemingly small difference, measure once quantum finite state automaton performs the mea- surement only at the end of computation,but for measure-many quantum finite state automaton the measure- ment will be performed by the automaton at every step of computation. Ambainis et al. [<xref ref-type="bibr" rid="scirp.66957-ref3">3</xref>] showed that measure many one-way quantum finite automata can accept all languages that can be accepted by measure once one-way quantum finite automata. Hence, in this paper,we consider the measure many quantum finite automata described by Kondacs et al. [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] . Whenever we mention one-way quantum finite automata we mean the model described by Konadacs et al. It has been shown by Kondacs et al. that the languages recognized by 1QFA’s form a proper subset of the regular languages. Besides these two models of QFA there are also such models of QFA as “enhanced” quantum finite state automaton [<xref ref-type="bibr" rid="scirp.66957-ref4">4</xref>] , latvian quantum finite state automaton [<xref ref-type="bibr" rid="scirp.66957-ref5">5</xref>] , 1-way QFA with control languages [<xref ref-type="bibr" rid="scirp.66957-ref6">6</xref>] , quantum finite state automaton with quantum and classical states (introduced by aharonov, kitaev and Nisan [<xref ref-type="bibr" rid="scirp.66957-ref7">7</xref>] ). Some other QFA models can be found in [<xref ref-type="bibr" rid="scirp.66957-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.66957-ref9">9</xref>] . In [<xref ref-type="bibr" rid="scirp.66957-ref10">10</xref>] , A. Nayek proposed a further generalization by allowing the QFA to perform several arbitrary measurements with intermediate unitary trans- formation at each step. The second model is 2-way quantum finite state automaton (2QFA) [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] . In this model,it is easy to simulate any deterministic automaton and some non-regular languages can be recognized as well; this implies that 2QFA’s are strictly more powerful than their classical counterparts. In [<xref ref-type="bibr" rid="scirp.66957-ref7">7</xref>] , they propose 2-way finite automaton with quantum and classical states, an intermediate model between 1QFA’s and 2QFA’s.</p><p>Languages accepted by multitape or multihead finite automaton were introduced in [<xref ref-type="bibr" rid="scirp.66957-ref11">11</xref>] and [<xref ref-type="bibr" rid="scirp.66957-ref12">12</xref>] . 1-way reversible and multihead finite automaton [<xref ref-type="bibr" rid="scirp.66957-ref13">13</xref>] and 2-way reversible multihead finite automaton [<xref ref-type="bibr" rid="scirp.66957-ref14">14</xref>] are in- troduced as a simple model of reversible computing and its language accepting capability is studied.</p><p>A konadacs and J Watrous [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] showed that 1QFA can only recognize regular languages,moreover, 1QFA cannot recognize all the regular languages. In [<xref ref-type="bibr" rid="scirp.66957-ref15">15</xref>] , they proposed a new model of one way QFA, namely, multiletter QFAs, that is an analogue of quantum automaton with classical memory containing the previously read letters. In these model,the automaton is not limited to seeing only one,the just incoming letter, but can see several earlier received letters as well. So a k-letter QFA is not limited to see only one,the just incoming input letter. Daowen Qiu et al. [<xref ref-type="bibr" rid="scirp.66957-ref16">16</xref>] further study the decidability of the equivalence and minimization problems of multiletter QFAs. In [<xref ref-type="bibr" rid="scirp.66957-ref17">17</xref>] , hierarchy and equivalence of multiletter quantum finite state automaton are studied.</p><p>Belovs et al. [<xref ref-type="bibr" rid="scirp.66957-ref15">15</xref>] have already showed that regular language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x6.png" xlink:type="simple"/></inline-formula> which can’t be accepted by 1QFA can be accepted by a 2-letter QFA.We continue the investigation of of 1-way quantum finite state automaton and k-letter quantum finite state automaton for improving their language accepting capabilities. In this paper, we introduce 1-way multihead quantum finite state automaton (1QFA(k)) by introducing multiple heads combined with existing automaton and study its language recognizing capabilities. It is proved that the newly introduced model 1QFA(2) can accept all unary regular languages.</p><p>We know that the language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x7.png" xlink:type="simple"/></inline-formula> cannot be recognized by 1DFA(2) ( [<xref ref-type="bibr" rid="scirp.66957-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.66957-ref19">19</xref>] ) and</p><p>1RMFA(2) ( [<xref ref-type="bibr" rid="scirp.66957-ref13">13</xref>] ) respectively.Here we show that this language L can be recognized by our model 1QFA(k). It has been shown that 1QFA(2) is more powerful compare to 1RMFA(2) respectively.We consider the context- sensitive language:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x8.png" xlink:type="simple"/></inline-formula>. It has been shown that this languages is also recognized by 1QFA(2).</p></sec><sec id="s2"><title>2. Preliminaries and Definitions</title><p>In this section we give different definitions and corresponding results for 1QFA.</p><sec id="s2_1"><title>2.1. Quantum Finite Automata</title><p>One-way quantum finite state automaton can been seen as the simplest model of quantum computation.Quantum finite automata could be of large importance is the fact that quantum memory seems to be very expensive and it is therefore of very much importance to know what can be achieved with limited amounts of quantum resources.</p><sec id="s2_1_1"><title>2.1.1. 1-Way Quantum Finite State Automata</title><p>One-way quantum finite state automaton seem to model very well the way very simple quantum processors work (Ambainis and freivalds, 1998), and also the way simple classical/quantum processors are expected to work: the classical part reads an input, picks up the corresponding quantum operator (a transition mapping) and performs it on a quantum memory of fixed size, independent of the size of input. 1QFA are very simple but less powerful than classical 1-way finite automaton.</p><p>Measure many quantum finite state automata (1QFA): We consider 1-way quantum finite automata (QFA) as defined in [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] .</p><p>Definition 1. Namely, a 1-way QFA is a tuple <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x9.png" xlink:type="simple"/></inline-formula> where</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x10.png" xlink:type="simple"/></inline-formula>is an input alphabet,</p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x11.png" xlink:type="simple"/></inline-formula>is a transition function,</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x12.png" xlink:type="simple"/></inline-formula>is a starting state,</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x13.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x14.png" xlink:type="simple"/></inline-formula> are sets of accepting and rejecting states.</p><p>The states in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x15.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x16.png" xlink:type="simple"/></inline-formula> are called halting states and the states in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x17.png" xlink:type="simple"/></inline-formula> are called non- halting states. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x18.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x19.png" xlink:type="simple"/></inline-formula> are symbols that do not belong to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x20.png" xlink:type="simple"/></inline-formula>. We use <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x21.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x22.png" xlink:type="simple"/></inline-formula> as the left and the right end marker, respectively. The working alphabet of M is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x23.png" xlink:type="simple"/></inline-formula>.</p><p>A superposition of M is any element of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula> (the space of mappings from Q to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula> with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula> norm). For<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula>denotes the unit vector with value 1 at q and 0 elsewhere. All elements of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula> can be expressed as linear combinations of vectors<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula>. We will use <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula> to denote elements of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x32.png" xlink:type="simple"/></inline-formula>. The transition function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x33.png" xlink:type="simple"/></inline-formula> maps <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x34.png" xlink:type="simple"/></inline-formula> to C. The value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x35.png" xlink:type="simple"/></inline-formula> is the amplitude of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x36.png" xlink:type="simple"/></inline-formula> in the superposition of states to which M goes from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x37.png" xlink:type="simple"/></inline-formula> after reading a. For<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x38.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x39.png" xlink:type="simple"/></inline-formula>is a linear transformation on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x40.png" xlink:type="simple"/></inline-formula> defined by</p><disp-formula id="scirp.66957-formula801"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/17-7403153x41.png"  xlink:type="simple"/></disp-formula><p>The computation of a QFA starts in the superposition<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula>. Then transformations corresponding to the left endmarker<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula>, the letters of the input word x and the right endmarker <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula> are applied. The transformation corresponding to a <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula> consists of two steps. 1) First, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula>is applied. The new superposition <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula> is <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula> where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula> is the superposition before this step. 2) Then <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula> is observed with respect to the observable <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x51.png" xlink:type="simple"/></inline-formula> where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x52.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x53.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x54.png" xlink:type="simple"/></inline-formula>. This observation gives<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x55.png" xlink:type="simple"/></inline-formula>, with the probability equal to the amplitude of the projection of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x56.png" xlink:type="simple"/></inline-formula>. After that, the superposition collapses to this peojection. If we get<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x57.png" xlink:type="simple"/></inline-formula>, the input is accepted. If we get<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x58.png" xlink:type="simple"/></inline-formula>, the input is rejected. If we get<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x44.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x58.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x59.png" xlink:type="simple"/></inline-formula>, the next transformation is applied.</p><p>Theorem 1. Let L be any language recognized by 1QFA with bounded error. Then L is regular.</p><p>Proof. The proof is in [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] .</p><p>Proposition 1. Given a language<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x60.png" xlink:type="simple"/></inline-formula>, it is not possible in general case to build a 1QFA that recognizes this language.</p><p>Proof. The proof is in [<xref ref-type="bibr" rid="scirp.66957-ref20">20</xref>] .</p><p>Theorem 2. The language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x61.png" xlink:type="simple"/></inline-formula> a cannot be recognized by 1QFA with bounded error.</p><p>Proof. This is shown in [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] .</p></sec><sec id="s2_1_2"><title>2.1.2. 2-Way Quantum Finite State Automata</title><p>The model of 2-way quantum finite state automaton (2QFA) is first introduced by Watrous [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] . 2QFA is more powerful than their classical counterpart. A 2QFA consists of a finite state control and a 2-way tape head― which scans a read only input tape.</p><p>Definition 2. Formally, a 2-way QFA is specified by 6-tuplet <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x62.png" xlink:type="simple"/></inline-formula> where</p><p>1) Q is a finite set of states.</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x63.png" xlink:type="simple"/></inline-formula>is an input alphabet.</p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x64.png" xlink:type="simple"/></inline-formula>is a transition function which has a mapping of the form<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x65.png" xlink:type="simple"/></inline-formula>. In addition to input symbols<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x66.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x67.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x68.png" xlink:type="simple"/></inline-formula> are symbols that do not belong to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x69.png" xlink:type="simple"/></inline-formula>. We use <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x70.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x71.png" xlink:type="simple"/></inline-formula> as the left and the right end marker, respectively. The working alphabet of M is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x72.png" xlink:type="simple"/></inline-formula>.</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x73.png" xlink:type="simple"/></inline-formula>is a starting state.</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x74.png" xlink:type="simple"/></inline-formula>are sets of accepting states.</p><p>6) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x75.png" xlink:type="simple"/></inline-formula>are sets of rejecting states.</p><p>The states in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x76.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x77.png" xlink:type="simple"/></inline-formula> are called halting states and the states in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x78.png" xlink:type="simple"/></inline-formula> are called non- halting states.</p><p>The 2QFA satisfies the following conditions (of well-formedness) for any<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x79.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x79.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x80.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x79.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x81.png" xlink:type="simple"/></inline-formula>:</p><p>1) Local probability and orthogonality condition</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x82.png" xlink:type="simple"/></inline-formula>.</p><p>2) Separability condition I</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x83.png" xlink:type="simple"/></inline-formula>.</p><p>3) Separability condition II</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x84.png" xlink:type="simple"/></inline-formula>.</p><p>4) Separability condition III</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x85.png" xlink:type="simple"/></inline-formula>.</p><p>In order to process an input word <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x86.png" xlink:type="simple"/></inline-formula> by M, we assume that the input is written on the tape with the endmarkers in the form w<sub>x</sub> = #x$ and such a tape of length |x| + 2 is circular, i.e., the symbol to the right of $ is #.</p><p>For an integer n let C<sub>x</sub> be the set (of size (n + 2)|Q|) of all possible configuration of M, for inputs of length x. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x87.png" xlink:type="simple"/></inline-formula>represents the amplitude with which a machine currently in state q and scanning symbol <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x88.png" xlink:type="simple"/></inline-formula> will change state to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x89.png" xlink:type="simple"/></inline-formula> and move its tape head in direction d. For any tape <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x90.png" xlink:type="simple"/></inline-formula> induces an operator <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x91.png" xlink:type="simple"/></inline-formula> (called the time-evolution operator U on tape x) on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x91.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x92.png" xlink:type="simple"/></inline-formula> as follows:</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x93.png" xlink:type="simple"/></inline-formula>, k + d mod |x| for each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x94.png" xlink:type="simple"/></inline-formula> and is extended to all <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x95.png" xlink:type="simple"/></inline-formula> by</p><p>linearity. Consider the Hilbert space l<sub>2</sub>(Q), where Q is the set of internal states of a 2QFA M. Suppose that we havea linear operator <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x96.png" xlink:type="simple"/></inline-formula> for each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x97.png" xlink:type="simple"/></inline-formula> and a function D:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x98.png" xlink:type="simple"/></inline-formula>. Define tran- sition function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x99.png" xlink:type="simple"/></inline-formula> as</p><disp-formula id="scirp.66957-formula802"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x100.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.66957-formula803"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x101.png"  xlink:type="simple"/></disp-formula><p>M is well-formed when <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x102.png" xlink:type="simple"/></inline-formula> is unitary.</p><p>Theorem 3. Every regular language is accepted by a 2QFA.</p><p>Proof. The proof has been shown in [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] .</p></sec><sec id="s2_1_3"><title>2.1.3. Multi-Letter Quantum Finite State Automata</title><p>Multi-letter quantum finite state automata has been introduced in [<xref ref-type="bibr" rid="scirp.66957-ref15">15</xref>] . In [<xref ref-type="bibr" rid="scirp.66957-ref16">16</xref>] , Qie etal. further study the decidability of the equivalence and minimization problems of multiletter QFAs. In [<xref ref-type="bibr" rid="scirp.66957-ref17">17</xref>] , hierarchy and equiva- lence of multiletter quantum finite state automaton are studied. k-letter QFA can be thought of as an analogue of quantum automata with classical memory containing the previously read letters. k-letter QFA is not limited to see only one, just incoming input letter, but can see several up to k of the earlier letter as well.</p><p>Definition 3. Formally, a k-letter QFA M is specified by a 5-tuple <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x103.png" xlink:type="simple"/></inline-formula> where</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x104.png" xlink:type="simple"/></inline-formula>are set of accepting states.</p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x105.png" xlink:type="simple"/></inline-formula>is the initial quantum state from H<sub>Q</sub>.</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x106.png" xlink:type="simple"/></inline-formula>is an input alphabet.</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x107.png" xlink:type="simple"/></inline-formula>is a transition function that assign a unitary trasition matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x108.png" xlink:type="simple"/></inline-formula> on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x109.png" xlink:type="simple"/></inline-formula> to each string <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x110.png" xlink:type="simple"/></inline-formula></p><p>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x111.png" xlink:type="simple"/></inline-formula> where C<sup>n</sup> denotes Euclidean space consisting of all n-dimensional complex vectors.</p><p>A k-letter QFA M works in the same way as an measure-once 1-way quantum finite state automaton [<xref ref-type="bibr" rid="scirp.66957-ref1">1</xref>] except that it applies unitary transformation corresponding not only to the last letter but to the last k-letters received. When k = 1, it is exactly same as measure once 1-way quantum finite state automaton. According to [<xref ref-type="bibr" rid="scirp.66957-ref16">16</xref>] , all languages accepted by k-letter QFAs with bounded error are regular language for any k.</p><p>To calculate the probability P<sub>M</sub>(x) that a k-letter QFA accepts an input string<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x112.png" xlink:type="simple"/></inline-formula>, it fol-</p><p>lows that for any<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x113.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x113.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x114.png" xlink:type="simple"/></inline-formula>is a unitary matrix. By <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x113.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x115.png" xlink:type="simple"/></inline-formula> they define a map from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x113.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x116.png" xlink:type="simple"/></inline-formula> to the set of</p><p>of all <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x117.png" xlink:type="simple"/></inline-formula> unitary matrices. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x117.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x118.png" xlink:type="simple"/></inline-formula>is induced by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x117.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x118.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x119.png" xlink:type="simple"/></inline-formula> in the following way. For <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x117.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x118.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x119.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x120.png" xlink:type="simple"/></inline-formula></p><disp-formula id="scirp.66957-formula804"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x121.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.66957-formula805"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x122.png"  xlink:type="simple"/></disp-formula><p>which specifies the computing process of M for an input string x. They identify the states in Q with an orthonormal basis of the complex Euclidean space <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x123.png" xlink:type="simple"/></inline-formula> and let P<sub>a</sub> denote the projection operator on the subspace spanned by Q<sub>a</sub> where</p><disp-formula id="scirp.66957-formula806"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x124.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x125.png" xlink:type="simple"/></inline-formula> denotes the conjugate transpose of vector<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x125.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x126.png" xlink:type="simple"/></inline-formula>.</p></sec></sec></sec><sec id="s3"><title>3. Multihead Quantum Finite Automata</title><p>A k-head quantum finite automaton is a quantum finite automaton having a single read only input tape whose inscription is the input word in between two endmarkers. We define 1-way k-head QFA where k heads of the automaton can move to the right or stay on the current tape square but not beyond the endmarkers.</p><p>We show that 1QFA(2) is more powerful than 1RMFA(2).</p><sec id="s3_1"><title>3.1. 1-Way Multihead Quantum Finite State Automata (1QFA(k))</title><p>Definition 4. A 1-way multihead quantum finite state automaton is a automaton <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x127.png" xlink:type="simple"/></inline-formula> where</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x128.png" xlink:type="simple"/></inline-formula>are set of accepting states.</p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x129.png" xlink:type="simple"/></inline-formula>is the initial quantum state superposition obeying normalization condition.</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x130.png" xlink:type="simple"/></inline-formula>is an input alphabet.</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x131.png" xlink:type="simple"/></inline-formula>is a transition function that assign a unitary trasition matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x131.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x132.png" xlink:type="simple"/></inline-formula> on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x131.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x132.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x133.png" xlink:type="simple"/></inline-formula> to each string</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x134.png" xlink:type="simple"/></inline-formula>where C<sup>n</sup> denotes Euclidean space consisting of all n-dimensional complex vectors. So <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x134.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x135.png" xlink:type="simple"/></inline-formula> is</p><p>a mapping of the form <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x136.png" xlink:type="simple"/></inline-formula> is the partial transition function where 1 means to move the head one square to the right and 0 means to keep the head at current square. We use # and $ as the left and the right end marker,respectively.</p><p>A superposition of M is any element in the Hilbert space l<sub>2</sub>(Q). For<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x137.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x138.png" xlink:type="simple"/></inline-formula>denotes the unit vector with value 1 at q and 0 elsewhere. All elements of l<sub>2</sub>(Q) can be expressed as a linear combination of vectors.</p><p>The transition function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula> maps <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula> to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x141.png" xlink:type="simple"/></inline-formula> where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x142.png" xlink:type="simple"/></inline-formula> denotes the set of complex numbers. The value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x143.png" xlink:type="simple"/></inline-formula> is the amplitude of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x144.png" xlink:type="simple"/></inline-formula> in the superposition of states to which M goes from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x144.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x145.png" xlink:type="simple"/></inline-formula> after reading <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x144.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x145.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x146.png" xlink:type="simple"/></inline-formula> by 1<sup>st</sup> head, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x144.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x145.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x146.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x147.png" xlink:type="simple"/></inline-formula>by 2<sup>nd</sup> head and so on and moving the heads according to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x144.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x145.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x146.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x147.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x148.png" xlink:type="simple"/></inline-formula> respectively. The head movement 0 denotes it stays in its position and 1 denotes head is moved to the right. For <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x144.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x145.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x146.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x147.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x148.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x149.png" xlink:type="simple"/></inline-formula> is a linear transformation on l<sub>2</sub>(Q) defined by</p><disp-formula id="scirp.66957-formula807"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x150.png"  xlink:type="simple"/></disp-formula><p>We require all <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x151.png" xlink:type="simple"/></inline-formula> to be unitary. The check for wellformedness can be done in a similar manner as in [<xref ref-type="bibr" rid="scirp.66957-ref2">2</xref>] in the following way:</p><p>Consider the Hilbert space l<sub>2</sub>(Q), where Q is the set of internal states of a 1QFA(k) M. Suppose that we have a linear operator <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x152.png" xlink:type="simple"/></inline-formula> for each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x152.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x153.png" xlink:type="simple"/></inline-formula> and a function<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x152.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x153.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x154.png" xlink:type="simple"/></inline-formula>. Define transition function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x152.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x153.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x154.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x155.png" xlink:type="simple"/></inline-formula> as:</p><disp-formula id="scirp.66957-formula808"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/17-7403153x156.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.66957-formula809"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/17-7403153x157.png"  xlink:type="simple"/></disp-formula><p>Here <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x158.png" xlink:type="simple"/></inline-formula> denotes the coefficient of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x159.png" xlink:type="simple"/></inline-formula> in<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x159.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x160.png" xlink:type="simple"/></inline-formula>. Eventually, M is well-formed if and only if</p><disp-formula id="scirp.66957-formula810"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x161.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.66957-formula811"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x162.png"  xlink:type="simple"/></disp-formula><p>for each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x163.png" xlink:type="simple"/></inline-formula> pair. pair. The condition mentioned is similar to the condition for reversibility in [<xref ref-type="bibr" rid="scirp.66957-ref15">15</xref>] .</p><p>The input word w begin with # and ends with $. The input is accepted if and only if the computation halts in an accepting states. It halts when the transition function is not defined for the current situation. In all other cases the input is rejected.</p><sec id="s3_1_1"><title>3.1.1. Matrices Representation of Different Automaton</title><p>In these section we write transition matrices of different automaton and discuss different properties of these automaton in terms of their transition matrices.</p><p>1) Deterministic finite state automaton</p><p>A deterministic finite automaton [<xref ref-type="bibr" rid="scirp.66957-ref20">20</xref>] consists of five tuple tuple <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x164.png" xlink:type="simple"/></inline-formula> where</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x165.png" xlink:type="simple"/></inline-formula>is an input alphabet,</p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x166.png" xlink:type="simple"/></inline-formula>is a transition function that takes as arguments a state and an input symbol and return a state,</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x167.png" xlink:type="simple"/></inline-formula>is a starting state,</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x168.png" xlink:type="simple"/></inline-formula>is a set of final or accepting states.</p><p>We design a deterministic finite state automaton <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x169.png" xlink:type="simple"/></inline-formula> which accepts all of string having at least one alphabet “b” [see <xref ref-type="fig" rid="fig1">Figure 1</xref>] where</p><disp-formula id="scirp.66957-formula812"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x170.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula813"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x171.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula814"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x172.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula815"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x173.png"  xlink:type="simple"/></disp-formula><p>The transition matrix of the deterministic finite state automaton is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>Here each row of each transition matrix contain exactly one non-zero entry i.e. 1 for deterministic finite state automaton.</p><fig-group id="fig1"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> The deterministic finite state automaton accepts all length of string having at least one alphabet “b”.</title></caption><fig id ="fig1_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x174.png"/></fig></fig-group><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> The transition matrix of the deterministic finite state auto- maton accepts all length of string having at least one alphabet “b”</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x175.png"/></fig><p>2) Non-deterministic finite state automaton</p><p>An non-deterministic finite automaton [<xref ref-type="bibr" rid="scirp.66957-ref20">20</xref>] is represented essentially like a deterministic finite state auto- maton. It consists of five tuple <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x176.png" xlink:type="simple"/></inline-formula> where</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x177.png" xlink:type="simple"/></inline-formula>is an input alphabet,</p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x178.png" xlink:type="simple"/></inline-formula>is a transition function that takes a state in Q and an input symbol in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x178.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x179.png" xlink:type="simple"/></inline-formula> as arguments and returns a subset of Q,</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x180.png" xlink:type="simple"/></inline-formula>is a starting state,</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x181.png" xlink:type="simple"/></inline-formula>is a set of final or accepting states.</p><p>The only difference between an non-deterministic finite state automaton and deterministic finite state auto- maton is the value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x182.png" xlink:type="simple"/></inline-formula> that returns a set of states in the case of an non-deterministic finite state auto- matonand single state in the case of deterministic finite state automaton.We design a non-deterministic finite state automaton <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x182.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x183.png" xlink:type="simple"/></inline-formula> (shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>) which accepts all of string having at least one alphabet “b” where</p><disp-formula id="scirp.66957-formula816"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x184.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula817"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x185.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula818"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x186.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula819"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x187.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula820"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x188.png"  xlink:type="simple"/></disp-formula><p>The transition matrix of the deterministic finite state automaton is shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><p>There is atleast one row in a transition matrix for non-deterministic automaton which contain more than one non-zero entry.</p><p>3) Reversible finite state automaton</p><p>An automaton <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x189.png" xlink:type="simple"/></inline-formula> [<xref ref-type="bibr" rid="scirp.66957-ref21">21</xref>] is reversible if, for every state p in Q for every letter a in M there existsat most one transition in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x189.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x190.png" xlink:type="simple"/></inline-formula> that comes from p (respectively goes to p) with label a. Here</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x191.png" xlink:type="simple"/></inline-formula>is an input alphabet,</p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x192.png" xlink:type="simple"/></inline-formula>is a transitions,is a subset of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x192.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x193.png" xlink:type="simple"/></inline-formula>,</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x194.png" xlink:type="simple"/></inline-formula>is a set of final states,</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x195.png" xlink:type="simple"/></inline-formula>is a set of final states.</p><fig-group id="fig3"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> The non-deterministic finite state automaton accepts all length of string having at least onealphabet “b”.</title></caption><fig id ="fig3_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x196.png"/></fig></fig-group><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> The transition matrix of the non-deterministic finite state automaton accepts all length of string having at least one alphabet “b”</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x197.png"/></fig><p>A reversible automaton is a finite automaton in which each letter induces a partial one-to-one map from the set of states into itself. A reversible automaton may have several initial or final states. As a consequence, the minimal automaton of a reversible language may not reversible.</p><p>We define reversible automaton <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x198.png" xlink:type="simple"/></inline-formula> shown in <xref ref-type="fig" rid="fig5">Figure 5</xref> which accept string of a’s of length 3 where</p><disp-formula id="scirp.66957-formula821"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x199.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula822"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x200.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula823"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x201.png"  xlink:type="simple"/></disp-formula><p>The transition matrix of the above automaton is shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><p>In case of reversible automaton dot product of any two row is zero and there are no cycles within the transi- tion/output matrix that can’t accessed from one of the input states.</p><p>4) Probabilistic finite state automaton</p><p>A probabilistic finite state automaton [<xref ref-type="bibr" rid="scirp.66957-ref22">22</xref>] over the alphabet <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x202.png" xlink:type="simple"/></inline-formula> is a system consists of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x202.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x203.png" xlink:type="simple"/></inline-formula> where</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x204.png" xlink:type="simple"/></inline-formula>is a transition function from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x204.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x205.png" xlink:type="simple"/></inline-formula> into <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x204.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x205.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x206.png" xlink:type="simple"/></inline-formula> such that for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x204.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x205.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x206.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x207.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x204.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x205.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x206.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x207.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x208.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x204.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x205.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x206.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x207.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x208.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x209.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x204.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x205.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x206.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x207.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x208.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x209.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x210.png" xlink:type="simple"/></inline-formula></p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x211.png" xlink:type="simple"/></inline-formula>is a starting state,</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x212.png" xlink:type="simple"/></inline-formula>is a set of final or accepting states.</p><p>In case of probabilistic finite state automaton we allow the fractional values in transition matrix with the provision that sum of each row give 1 [see <xref ref-type="fig" rid="fig7">Figure 7</xref>].</p><p>5) Quantum finite state automaton</p><p>We consider 1-way quantum finite state automata (QFA) as defined in [<xref ref-type="bibr" rid="scirp.66957-ref23">23</xref>] is a tuple <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x213.png" xlink:type="simple"/></inline-formula> where</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x214.png" xlink:type="simple"/></inline-formula>is an input alphabet,</p><fig-group id="fig5"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> The reversible automaton accept string of a’s of length 3.</title></caption><fig id ="fig5_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x215.png"/></fig></fig-group><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> The transition matrix of the reversible automaton accepts string of a’s of length of 3</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x216.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> The sum of each row give 1</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x217.png"/></fig><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x218.png" xlink:type="simple"/></inline-formula>is a transition function,</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x219.png" xlink:type="simple"/></inline-formula>is a starting state</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x220.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x220.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x221.png" xlink:type="simple"/></inline-formula> are sets of accepting and rejecting states.</p><p>The states in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x222.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x222.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x223.png" xlink:type="simple"/></inline-formula> are called halting states and the states in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x222.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x223.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x224.png" xlink:type="simple"/></inline-formula> are called non- halting states. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x222.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x223.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x224.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x225.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x222.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x223.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x224.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x225.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x226.png" xlink:type="simple"/></inline-formula> are symbols that do not belong to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x222.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x223.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x224.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x225.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x226.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x227.png" xlink:type="simple"/></inline-formula>. We use <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x222.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x223.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x224.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x225.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x226.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x227.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x228.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x222.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x223.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x224.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x225.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x226.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x227.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x228.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x229.png" xlink:type="simple"/></inline-formula> as the left and the right end marker, respectively. The working alphabet of M is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x222.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x223.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x224.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x225.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x226.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x227.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x228.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x229.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x230.png" xlink:type="simple"/></inline-formula>. Quantum finite state automaton is obtainby letting the transition matrix with complex entries.We also require each of the matrices to be unitary.</p><p>The transition matrix of the quantum finite state automaton looks like [<xref ref-type="fig" rid="fig8">Figure 8</xref>]:</p><p>The transition matrix is unitary since the sum of the squares of the norms in each row adds up to 1 and the dot product of any two row is 0.If all matrices only have 0 or 1 entries and the matrices are unitary,then the automaton is deterministic and reversible.</p><p>6) 1-way multihead deterministic finite state automaton</p><p>A 1-way k-head deterministic finite state automaton is a deterministic finite state automaton with k- independent read heads on a single input tape with the end markers. On each move the machine can si- multaneously read the k input cells scanned by k-heads,move each head one square to the right or keep stationary.</p><p>A 1-way multihead deterministic finite state automaton (1DFA(k)) [<xref ref-type="bibr" rid="scirp.66957-ref13">13</xref>] is a tuple <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x231.png" xlink:type="simple"/></inline-formula> where</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x232.png" xlink:type="simple"/></inline-formula>is an input alphabet,</p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x233.png" xlink:type="simple"/></inline-formula>is the number of heads.</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x234.png" xlink:type="simple"/></inline-formula>is the partial transition function;where 1 means to move the head one square to the right and 0 means to keep the head on the current square,</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x235.png" xlink:type="simple"/></inline-formula>is the left and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x235.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x236.png" xlink:type="simple"/></inline-formula> is the right endmarkers.</p><p>6) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x237.png" xlink:type="simple"/></inline-formula>is a starting state,</p><p>7) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x238.png" xlink:type="simple"/></inline-formula>is a set of final or accepting states.</p><p>We define a 1DFA(2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x239.png" xlink:type="simple"/></inline-formula>shown in <xref ref-type="fig" rid="fig9">Figure 9</xref> which accept <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x239.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x240.png" xlink:type="simple"/></inline-formula> where</p><disp-formula id="scirp.66957-formula824"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x241.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula825"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x242.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula826"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x243.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula827"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x244.png"  xlink:type="simple"/></disp-formula><fig-group id="fig8"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> The transition matrix of the automaton contain complex entry.</title></caption><fig id ="fig8_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x245.png"/></fig></fig-group><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> 1DFA(2) accept a language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x247.png" xlink:type="simple"/></inline-formula> labelover flow</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x246.png"/></fig><p>The transition matrix of the above automaton is [see <xref ref-type="fig" rid="fig1">Figure 1</xref>0].</p><p>Each row of transition matrix contain only one 1 which has the same property as deterministic finite state automaton.</p><p>7) 1-way Reversible multihead finite state automaton</p><p>A 1-way reversible multihead finite state automaton (1REV-DFA(k)) [<xref ref-type="bibr" rid="scirp.66957-ref13">13</xref>] is a tuple <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x248.png" xlink:type="simple"/></inline-formula> which has same structure as 1DFA(k) where</p><p>1) Q is a finite set of states,</p><p>2) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x249.png" xlink:type="simple"/></inline-formula>is an input alphabet,</p><p>3) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x250.png" xlink:type="simple"/></inline-formula>is the number of heads.</p><p>4) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x251.png" xlink:type="simple"/></inline-formula>is the partial transition function;where 1 means to move the head one</p><p>square to the right and 0 means to keep the head on the current square,</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x252.png" xlink:type="simple"/></inline-formula>is the left and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x252.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x253.png" xlink:type="simple"/></inline-formula> is the right endmarkers.</p><p>6) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x254.png" xlink:type="simple"/></inline-formula>is a starting state,</p><p>7) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x255.png" xlink:type="simple"/></inline-formula>is a set of final or accepting states.</p><p>Let M be a 1DFA(k) and D be the set of all reachable configuration that occur in any computation of M beginning with an initial configuration and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x256.png" xlink:type="simple"/></inline-formula> with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x256.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x257.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x256.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x257.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x258.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x256.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x257.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x258.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x259.png" xlink:type="simple"/></inline-formula>. D be the set of all reachable configurations that occur in any computation. M is said to be reversible if the following two conditions are fulfilled:</p><p>1) For any two transitions:</p><disp-formula id="scirp.66957-formula828"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x260.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.66957-formula829"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x261.png"  xlink:type="simple"/></disp-formula><p>it holds if<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x262.png" xlink:type="simple"/></inline-formula>.</p><p>2) There is at most one transition of the form</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x263.png" xlink:type="simple"/></inline-formula>.</p><p>The non-context free language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x264.png" xlink:type="simple"/></inline-formula> is accepted by REV-1DFA(2)</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x265.png" xlink:type="simple"/></inline-formula>shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>1 where the transition function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x265.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x266.png" xlink:type="simple"/></inline-formula> is asfollows:</p><p></p><fig-group id="fig10"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> The transition matrix of1DFA(2) accept a language<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x268.png" xlink:type="simple"/></inline-formula>.</title></caption><fig id ="fig10_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x267.png"/></fig></fig-group><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> 1REV-DFA(2) accept a language<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x270.png" xlink:type="simple"/></inline-formula></title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x269.png"/></fig><disp-formula id="scirp.66957-formula830"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x271.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula831"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x272.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula832"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x273.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula833"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x274.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula834"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x275.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula835"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x276.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula836"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x277.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula837"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x278.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula838"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x279.png"  xlink:type="simple"/></disp-formula><p>The transition matrix of the above automaton is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2.</p><p>Dot product of any two row is zero for multihead reversible finite state automaton.</p><p>8) 1-way multihead quantum finite state automaton</p><p>1-way multihead quantum finite state automaton is a 1-way k-head quantum finite state automaton where k-heads of the automaton can move to the right or stay on the current tape square but not beyond the end markers.The language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x280.png" xlink:type="simple"/></inline-formula> is accepted by the 1QFA(k)</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x281.png" xlink:type="simple"/></inline-formula>[see <xref ref-type="fig" rid="fig1">Figure 1</xref>3] where</p><disp-formula id="scirp.66957-formula839"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x282.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula840"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x283.png"  xlink:type="simple"/></disp-formula><fig-group id="fig12"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>2</label><caption><title> The transition matrix of 1REV-DFA(2) accept a language<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x285.png" xlink:type="simple"/></inline-formula>.</title></caption><fig id ="fig12_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x284.png"/></fig></fig-group><disp-formula id="scirp.66957-formula841"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x286.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula842"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x287.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula843"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x288.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula844"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x289.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula845"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x290.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula846"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x291.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula847"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x292.png"  xlink:type="simple"/></disp-formula><p>The transition matrix of the above automaton is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>4.</p><p>The sum of the square of the norms in each row adds up to 1 and dot product of any two row is zero formultihead quantum finite state automaton.</p></sec><sec id="s3_1_2"><title>3.1.2. Recognition of Language Class</title><p>In this section we show that 1QFA(k) has more language recognizing power than 1QFA. 1QFA(2) can recognize regular language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x293.png" xlink:type="simple"/></inline-formula> and context-sensitive language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x293.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x294.png" xlink:type="simple"/></inline-formula> respectively.</p><p>Theorem 4. 1QFA(2) can accept all unary regular languages.</p><p>Proof. In [<xref ref-type="bibr" rid="scirp.66957-ref12">12</xref>] it has been shown that any unary regular language is accepted by some 1-way reversible 2-headdeterministic finite automaton. We find from the previous section that in a 1-way multihead quantum</p><fig id="fig13"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>3</label><caption><title> 1QFA(2) accept a language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x296.png" xlink:type="simple"/></inline-formula> with acceptance probability p &gt; 0</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x295.png"/></fig><fig id="fig14"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>4</label><caption><title> The transition matrix of 1QFA(2) accept a language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x298.png" xlink:type="simple"/></inline-formula> with acceptance probability p &gt; 0</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x297.png"/></fig><p>finitestate automaton where the transition matrices are only 0 and 1 entry, it is essentially a 1-way reversible multihead finite state automaton. So 1-way 2-head quantum finite state automaton accept all unary language.</p><p>Example 1. A 1-way 2-head quantum finite state automaton is a automaton <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x299.png" xlink:type="simple"/></inline-formula> can accept <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x299.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x300.png" xlink:type="simple"/></inline-formula> in the folowing manner:</p><p>Let, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x301.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x301.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x302.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x301.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x302.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x303.png" xlink:type="simple"/></inline-formula></p><p>Define:</p><disp-formula id="scirp.66957-formula848"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x304.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula849"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x305.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula850"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x306.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula851"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x307.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula852"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x308.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula853"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x309.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula854"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x310.png"  xlink:type="simple"/></disp-formula><p>The automaton acts as follows: Initially both heads of the automaton M are at #. After reading the input symbols, the automaton M remain at state<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x311.png" xlink:type="simple"/></inline-formula>. The first head remain stationary where the second head move one square to the right of the input tape whenever the automaton reaches at state<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x311.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x312.png" xlink:type="simple"/></inline-formula>. The movement of heads are similar as the previous case. Due to the movement of heads the second head may be at “a” or “b”.</p><p>For both cases the automaton M move to state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x313.png" xlink:type="simple"/></inline-formula> from state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x313.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x314.png" xlink:type="simple"/></inline-formula> and both heads move one square to theright of the input tape. When the first head at “a” and second head at “$”, the automaton M goes to final state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x313.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x314.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x315.png" xlink:type="simple"/></inline-formula> from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x313.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x314.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x315.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x316.png" xlink:type="simple"/></inline-formula> and the string will be accepted by the automaton M with probability 1.</p><p>Consider a string w not in L. As w is not in L the heads of the automaton M will arrived in such a way that for that particular position of heads and state, no transition rules are defined. So, for a string w, which M does not accept, there is no sequence of transitions that makes M to its final state after consumption of w. So, M rejects with probability 1. Each pairs of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x317.png" xlink:type="simple"/></inline-formula> is unitary.</p><p>Example 2. A 1-way 2-head quantum finite state automaton is a automaton <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x318.png" xlink:type="simple"/></inline-formula> can accept <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x318.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x319.png" xlink:type="simple"/></inline-formula> in the following manner:</p><p>Let, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x320.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x320.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x321.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x320.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x321.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x322.png" xlink:type="simple"/></inline-formula></p><p>Define:</p><disp-formula id="scirp.66957-formula855"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x323.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula856"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x324.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula857"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x325.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula858"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x326.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula859"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x327.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula860"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x328.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula861"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x329.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula862"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x330.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula863"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x331.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula864"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x332.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula865"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x333.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula866"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x334.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula867"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x335.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula868"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x336.png"  xlink:type="simple"/></disp-formula><p>The automaton acts as follows: Initially both heads of the automaton M are at #. After reading the input symbols, the automaton M remains at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula> and the first head remain stationary and the second head moveone square to the right of the input tape.Whenever the automaton M reach at state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x338.png" xlink:type="simple"/></inline-formula> the movement of heads are similar as the above case.The automaton M performs similar task as previous one for all inputletter “a” until the next input letter read by second head is “b”. For reading input letter “b” by the second head of the automaton M, it moves to state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x338.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x339.png" xlink:type="simple"/></inline-formula> and remains at state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x338.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x339.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x340.png" xlink:type="simple"/></inline-formula> until the next input letter read by thesecond head is “c”. This steps counts the number of letter “b” with number of letter “a”. Both heads move one square to the right of the input string for state<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x338.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x339.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x340.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x341.png" xlink:type="simple"/></inline-formula>. After reading the letter “c” by second head where the first is reading letter “a” of the input string, the automaton M goes to state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x338.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x339.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x340.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x341.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x342.png" xlink:type="simple"/></inline-formula> from state<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x338.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x339.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x340.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x341.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x342.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x343.png" xlink:type="simple"/></inline-formula>. Both heads moveone square to the right of the input string whenever <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x338.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x339.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x340.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x341.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x342.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x343.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x344.png" xlink:type="simple"/></inline-formula> state will be reached. The automaton M now checks the number of letter “b” and “c” of the input string with two heads of the automaton until the second head readthe right endmarker $, for which the automaton goes to state<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x338.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x339.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x340.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x341.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x342.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x343.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x344.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x345.png" xlink:type="simple"/></inline-formula>. When the automaton M is in state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x337.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x338.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x339.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x340.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x341.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x342.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x343.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x344.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x345.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x346.png" xlink:type="simple"/></inline-formula> and both heads read the right endmarker $, then the automaton accept the input string with probability 1.</p><p>Consider a string w not in L. As w is not in L the heads of the automaton M will arrived in such a way that for that particular position of heads and state, no transition rules are defined. So, for a string w, which M does not accept,there is no sequence of transitions that makes M to its final state after consumption of w. So, M rejects with probability 1. Condition of unitarity is satisfied for all pairs of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x347.png" xlink:type="simple"/></inline-formula>.</p><p>Theorem 5. 1QFA(2) is more powerful than 1QFA with respect to recognition of language.</p><p>Proof. In Theorem 2 it was proved that the language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x348.png" xlink:type="simple"/></inline-formula> cannot be recognized by 1QFA with bounded error. In Example 1 we proved that it can be done with 1QFA(2).</p><p>Theorem 6. Given a language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x349.png" xlink:type="simple"/></inline-formula> it is possible in general case to build a 1QFA(k) that re- cognizes this language.</p><p>Proof. In [<xref ref-type="bibr" rid="scirp.66957-ref24">24</xref>] it has been shown that this language consists of subset of words from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x350.png" xlink:type="simple"/></inline-formula> language whichis recognize by 1QFA(2) as shown in Example 1.</p><p>Example 3. A 1-way 2-head quantum finite state automaton is a automaton <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x351.png" xlink:type="simple"/></inline-formula> can accept <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x351.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x352.png" xlink:type="simple"/></inline-formula> in the following manner:</p><p>Let, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x353.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x353.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x354.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x353.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x354.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x355.png" xlink:type="simple"/></inline-formula></p><p>Define:</p><disp-formula id="scirp.66957-formula869"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x356.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula870"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x357.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula871"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x358.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula872"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x359.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula873"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x360.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula874"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x361.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula875"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x362.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula876"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x363.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula877"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x364.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula878"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x365.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.66957-formula879"><graphic  xlink:href="http://html.scirp.org/file/17-7403153x366.png"  xlink:type="simple"/></disp-formula><p>The automaton acts as follows: at each reading of the symbol <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x367.png" xlink:type="simple"/></inline-formula> the automaton goes into a super-</p><p>position of two states <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x368.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x368.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x369.png" xlink:type="simple"/></inline-formula> with amplitude a <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x368.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x369.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x370.png" xlink:type="simple"/></inline-formula> respectively.This is done with the objective that at</p><p>each reading of the symbol the automaton guesses x to be the first character which does not match. Thus if the guess is rightthen the path corresponding to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x371.png" xlink:type="simple"/></inline-formula> goes to an accepting states and the guess is wrong the path correspondingto <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x371.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x372.png" xlink:type="simple"/></inline-formula> goes to an rejecting state. Even if the guess is wrong the path corresponding to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x371.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x372.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x373.png" xlink:type="simple"/></inline-formula> allows us to makeanother guess. So if the input word belongs to L and k<sup>th</sup> letter does not match with theend.</p><p>Then at the k<sup>th</sup> depth <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x374.png" xlink:type="simple"/></inline-formula> will reach an accepting states with probability<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x374.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x375.png" xlink:type="simple"/></inline-formula>. But if the input word is an</p><p>palindrome and does notbelong to L then no matter what depth we traversed <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x376.png" xlink:type="simple"/></inline-formula> will never go to an accepting state. As the aboveautomaton is 1-way and the length of the input word is finite, the above automaton will always halt in finitetime and the input string belonging to the language is accepted by the automaton if the probability of state <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x376.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x377.png" xlink:type="simple"/></inline-formula> is greater than 0. We arrive at this conclusion because if the word is palindrome the probability of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x376.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x377.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x378.png" xlink:type="simple"/></inline-formula> will be 0. Each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x376.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x377.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x378.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x379.png" xlink:type="simple"/></inline-formula> is unitary by inspection. So M is well-formed. <xref ref-type="fig" rid="fig1">Figure 1</xref>5 and <xref ref-type="fig" rid="fig1">Figure 1</xref>6 shown below describe the working steps of the automaton in pictorial form.</p><fig id="fig15"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>5</label><caption><title> Input “abba” is palindrome and hence it is not accepted</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x380.png"/></fig><fig id="fig16"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>6</label><caption><title> Input “abba” is not palindrome and hence it is accepted</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/17-7403153x381.png"/></fig><p>Theorem 7. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x382.png" xlink:type="simple"/></inline-formula>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x382.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x383.png" xlink:type="simple"/></inline-formula> is the set of all languages accepted by 1-way 2-head quantum finite state automaton and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x382.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x383.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x384.png" xlink:type="simple"/></inline-formula> is the set of all languages accepted by 1-way 2-headdeterministic finite state automaton.</p><p>Proof. The language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x385.png" xlink:type="simple"/></inline-formula> cannot be recognized by 1DFA(2) ( [<xref ref-type="bibr" rid="scirp.66957-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.66957-ref19">19</xref>] ). In Example 3 we proved that it can be done with 1QFA(2).</p><p>Theorem 8. For every 1-way reversible 2-head finite state automaton M which accepts a language L, thereexists a 1-way 2-head quantum finite state automaton M’ which accepts the same language L.</p><p>Proof. We know that the transition matrix of 1-way reversible multihead finite state automaton has the following properties:</p><p>1) Dot product of any two row is zero for 1-way reversible multihead finite state automaton.</p><p>2) All matrices only have 0 or 1 entries.</p><p>Therefore the above two properties of the transition matrix ensures that the transition matrix is also unitary. As a result given a 1-way reversible 2-head finite state automaton M we get a 1-way 2-head quantum finite state automaton M’ which has the same transition matrix,same set of states, same set of accepting states and start state as M. as the transition matrix, start state and accepting states of M and M’ are same,they accept the same language.</p><p>Theorem 9. The set of all languages accepted by 1-way reversible 2-head finite state automata (1RMFA(2)) is a proper subset of set of all language accepted by 1-way 2-head quantum finite state automata. (1QFA(2))</p><p>Proof. Theorem 8 tells us that for every 1RMFA(2) which accept a language L there exist 1QFA(2) which accept the same language. So, the set of all languages accepted by 1RMFA(2) is a subset of set of all languages accepted by 1QFA(2). From ( [<xref ref-type="bibr" rid="scirp.66957-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.66957-ref19">19</xref>] ) we know that the language <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x386.png" xlink:type="simple"/></inline-formula> is not accepted by any 1DFA(2). Also from ( [<xref ref-type="bibr" rid="scirp.66957-ref13">13</xref>] ) we know that the set of all languages accepted by 1RMFA(2) is a proper subset of 1DFA(2). Therefore, there is no 1RMFA(2) which accepts the language<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x386.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x387.png" xlink:type="simple"/></inline-formula>. In Example 3 ithas been shown 1QFA(2) accept the language L. Thus, the subset relation is proper.</p><p>Corollary 1. 1QFA(2) is computationally more powerful than 1RMFA(2).</p></sec></sec></sec><sec id="s4"><title>4. Conclusion</title><p>In this paper, we studied characteristics of 1QFA(k) with their language accepting capability. There are still many non-regular context free context sensitive languages accepted by 1QFA(k) other than shown in this paper. We show that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x388.png" xlink:type="simple"/></inline-formula> where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x388.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x389.png" xlink:type="simple"/></inline-formula> is the set of all languages accepted by 1-way 2-head quantum finite state automaton and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x388.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x389.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/17-7403153x390.png" xlink:type="simple"/></inline-formula> is the set of all languages accepted by 1-way 2-head deterministic finite state automaton. We also show that 1QFA(2) is more powerful than 1RMFA(2) with respect to recognition of language. But though 1QFA(2) can accepts some non-regular languages but it is still not be proved that whether 1QFA(2) can accepts all regular languages.We can explore it by using the superposition property of 1QFA(k).</p></sec><sec id="s5"><title>Acknowledgements</title><p>Research of Debayan Ganguly is funded by the Council of Scientific Industrial Research (CSIR). This support is greatly appreciated.</p></sec><sec id="s6"><title>Cite this paper</title><p>Debayan Ganguly,Kingshuk Chatterjee,Kumar Sankar Ray, (2016) 1-Way Multihead Quantum Finite State Automata. Applied Mathematics,07,1005-1022. doi: 10.4236/am.2016.79088</p></sec></body><back><ref-list><title>References</title><ref id="scirp.66957-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Moore, C. and Crutchfield, J. (1997) Quantum Automata and Quantum Grammars. Theoretical Computer Science, 237, 275-306. http://dx.doi.org/10.1016/S0304-3975(98)00191-1</mixed-citation></ref><ref id="scirp.66957-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Kondacs, A. and Watrous, J. (1997) On the Power of Quantum Finite State Automata. Proceedings of the 38th Annual Symposium on Foundations of Computer Science, Miami, 66-75. http://dx.doi.org/10.1109/SFCS.1997.646094</mixed-citation></ref><ref id="scirp.66957-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Ambainis, A. and Freivalds, R. (1998) One-Way Quantum Finite Automata: Strengths, Weakness and Generalizations. IEEE 39th Annual Symposium on Foundations of Computer Science, 332-342.  
http://dx.doi.org/10.1109/SFCS.1998.743469</mixed-citation></ref><ref id="scirp.66957-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Ambainis, A., Bonner, R.F., Freivalds, R. and Kikusts, A. (1999) Probabilities to Accept Languages by Quantum Finite Automata. COCOON, 174-183. http://dx.doi.org/10.1007/3-540-48686-0_17</mixed-citation></ref><ref id="scirp.66957-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Ambainis, A., Bcandry, M., Golovkins, M., Kikusts, A., Mercer, M. and Therien, D. (2004) Algebric Results on Quantum Automata. STACS, 93-104.</mixed-citation></ref><ref id="scirp.66957-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Bertoni, A., Mereghetti, C. and Palano, B. (2003) Quantum Computing: 1 way Quantum Automata. Developments Language Theory, 1-20.</mixed-citation></ref><ref id="scirp.66957-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Ambainis, A. and Watrous, J. (2002) Two Way Finite Automata with Quantum and Classical States. Theoretical Computer Science, 287, 299-311.</mixed-citation></ref><ref id="scirp.66957-ref8"><label>8</label><mixed-citation publication-type="book" xlink:type="simple">Ambainis, A., Beaudry, M., Golovkins, M., Kikusts, A., Mercer, M. and Therien, D. (2004) Algebraic Results on Quantum Automata. In: Diekert, V. and Habib, M., Eds., STACS, LNCS, Vol. 2996, Springer, Heidelberg, 93-104.</mixed-citation></ref><ref id="scirp.66957-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Dzelme, I. (2003) Kvantu Automar Jauktajiem Stavokliem. Technical Report, University of Latvia.</mixed-citation></ref><ref id="scirp.66957-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Nayak, A. (1999) OPtimal Lower Bounds for Quantum Automata and Random Access Codes. Proceedings of the 40th Annual Symposium on Foundations of Computer Science, 369-377. http://dx.doi.org/10.1109/sffcs.1999.814608</mixed-citation></ref><ref id="scirp.66957-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Rabin, M.O. and Scott, D. (1964) Finite Automata and Their Decision Problems. Sequential Machines, Selected Papers, Addition-Wesley, 63-91.</mixed-citation></ref><ref id="scirp.66957-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Rosenberg, A.L. (1966) On Multihead Finite Automata. IBM Journal of Research and Development, 10, 388-394.  
http://dx.doi.org/10.1147/rd.105.0388</mixed-citation></ref><ref id="scirp.66957-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Kutrib, M. and Malchar, A. (2013) One-Way Reversible Multi-Head Finite Automata. Reversible Computation, Lecture Notes in Computer Science, 7581, 14-28. http://dx.doi.org/10.1007/978-3-642-36315-3_2</mixed-citation></ref><ref id="scirp.66957-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Morita, K. (2011) Two-Way Reversible Multi-Head Finite Automata. Fundamenta Informaticae, IOS Press, 241-254.</mixed-citation></ref><ref id="scirp.66957-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Belovs, A., Rosmanis, A. and Smotrovs, J. (2007) Multi-Letter Reversible and Quantum Finite Automata. Proceedings of the 13th International Conference on Developments in Language Theory (DLT’2007), Lecture Notes in Computer Science, Vol. 4588, Springer, Berlin, 60-71. http://dx.doi.org/10.1007/978-3-540-73208-2_9</mixed-citation></ref><ref id="scirp.66957-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Qiu, D., Li, L., Zou, X., Mateus, P. and Gruska, J. (2011) Multi-Letter Quantum Finite Automata: Decidability of the Equivalence and Minimization of States. Acta Informatica, 271-290.</mixed-citation></ref><ref id="scirp.66957-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Qiu, D. and Yu, S. (2006) Hierarchy and Equivalence of Multi-Letter Quantum Finite Automata. Theoretical Computer Science, 356, 190-199.</mixed-citation></ref><ref id="scirp.66957-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Ibarra, H.O. and Ravikumar, B. (2009) On Partially Blind Multihead Automata. Theoretical Computer Science, 410, 3006-3017.</mixed-citation></ref><ref id="scirp.66957-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Wagner, K. and Wechsung, G. (1986) Computational Complexity. D Reidel Publishing Company.</mixed-citation></ref><ref id="scirp.66957-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Hopcroft, E.J.,Motwani, R. and Ullman, D.J. (2012) Introduction to Automata Theory. Languages, and Computation, Pearson, 3rd Edition.</mixed-citation></ref><ref id="scirp.66957-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Sylvain, L. (2002) On the Construction of Reversible Automata for Reversible Language. Automata, Languages and Programming, Volume 2380 of the Series Lecture Notes in Computer Science, 170-182.</mixed-citation></ref><ref id="scirp.66957-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Rabin, O.M. (1963) Probabilistic Automata. Information and Control, 6, 230-245.  
http://dx.doi.org/10.1016/S0019-9958(63)90290-0</mixed-citation></ref><ref id="scirp.66957-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Gruska, J. (2000) Quantum Computing. McGraw Hill, 153-157.</mixed-citation></ref><ref id="scirp.66957-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Skuskovniks, A. On Languages Not Recognizable by One-Way Measure Many Quantum Finite Automaton. Supported by ESF Project 2009/0216/1DP/1.1.1.2.0/09/APIA/VIAA/044.</mixed-citation></ref></ref-list></back></article>