Applied Mathematics
Vol.07 No.09(2016), Article ID:66957,18 pages
10.4236/am.2016.79088
1-Way Multihead Quantum Finite State Automata
Debayan Ganguly, Kingshuk Chatterjee, Kumar Sankar Ray
Electronics and Communication Sciences Unit, Indian Statistical Institute, Kolkata, India

Copyright © 2016 by authors and Scientific Research Publishing Inc.
This work is licensed under the Creative Commons Attribution International License (CC BY).
http://creativecommons.org/licenses/by/4.0/


Received 6 April 2016; accepted 28 May 2016; published 31 May 2016
ABSTRACT
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.
Keywords:
1-Way Quantum Finite State Automaton (1QFA), k-Letter Quantum Finite State Automata (k-Letter QFA), 1-Way Multihead Quantum Finite State Automaton (1QFA(k)), 1-Way Deterministic 2-Head Finite State Automaton (1DFA((2)), 1-Way Reversible Multihead Finite State Automaton (1RMFA(k))

1. Introduction
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 [1] (measure once quantum finite state automaton) and quan- tum finite state automaton introduced by Kondacs and Watrous [2] (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. [3] 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. [2] . 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 [4] , latvian quantum finite state automaton [5] , 1-way QFA with control languages [6] , quantum finite state automaton with quantum and classical states (introduced by aharonov, kitaev and Nisan [7] ). Some other QFA models can be found in [8] [9] . In [10] , 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) [2] . 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 [7] , they propose 2-way finite automaton with quantum and classical states, an intermediate model between 1QFA’s and 2QFA’s.
Languages accepted by multitape or multihead finite automaton were introduced in [11] and [12] . 1-way reversible and multihead finite automaton [13] and 2-way reversible multihead finite automaton [14] are in- troduced as a simple model of reversible computing and its language accepting capability is studied.
A konadacs and J Watrous [2] showed that 1QFA can only recognize regular languages,moreover, 1QFA cannot recognize all the regular languages. In [15] , 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. [16] further study the decidability of the equivalence and minimization problems of multiletter QFAs. In [17] , hierarchy and equivalence of multiletter quantum finite state automaton are studied.
Belovs et al. [15] have already showed that regular language
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.
We know that the language
cannot be recognized by 1DFA(2) ( [18] [19] ) and
1RMFA(2) ( [13] ) 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:
. It has been shown that this languages is also recognized by 1QFA(2).
2. Preliminaries and Definitions
In this section we give different definitions and corresponding results for 1QFA.
2.1. Quantum Finite Automata
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.
2.1.1. 1-Way Quantum Finite State Automata
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.
Measure many quantum finite state automata (1QFA): We consider 1-way quantum finite automata (QFA) as defined in [2] .
Definition 1. Namely, a 1-way QFA is a tuple
where
1) Q is a finite set of states,
2)
is an input alphabet,
3)
is a transition function,
4)
is a starting state,
5)
and
are sets of accepting and rejecting states.
The states in
and
are called halting states and the states in
are called non- halting states.
and
are symbols that do not belong to
. We use 


A superposition of M is any element of 

















The computation of a QFA starts in the superposition

















Theorem 1. Let L be any language recognized by 1QFA with bounded error. Then L is regular.
Proof. The proof is in [2] .
Proposition 1. Given a language
Proof. The proof is in [20] .
Theorem 2. The language 
Proof. This is shown in [2] .
2.1.2. 2-Way Quantum Finite State Automata
The model of 2-way quantum finite state automaton (2QFA) is first introduced by Watrous [2] . 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.
Definition 2. Formally, a 2-way QFA is specified by 6-tuplet 
1) Q is a finite set of states.
2) 
3) 








4) 
5) 
6) 
The states in 


The 2QFA satisfies the following conditions (of well-formedness) for any


1) Local probability and orthogonality condition

2) Separability condition I

3) Separability condition II

4) Separability condition III

In order to process an input word 
For an integer n let Cx be the set (of size (n + 2)|Q|) of all possible configuration of M, for inputs of length x. 








linearity. Consider the Hilbert space l2(Q), where Q is the set of internal states of a 2QFA M. Suppose that we havea linear operator 



and
M is well-formed when 
Theorem 3. Every regular language is accepted by a 2QFA.
Proof. The proof has been shown in [2] .
2.1.3. Multi-Letter Quantum Finite State Automata
Multi-letter quantum finite state automata has been introduced in [15] . In [16] , Qie etal. further study the decidability of the equivalence and minimization problems of multiletter QFAs. In [17] , 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.
Definition 3. Formally, a k-letter QFA M is specified by a 5-tuple 
1) Q is a finite set of states,
2) 
3) 
4) 
5) 


and 
A k-letter QFA M works in the same way as an measure-once 1-way quantum finite state automaton [1] 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 [16] , all languages accepted by k-letter QFAs with bounded error are regular language for any k.
To calculate the probability PM(x) that a k-letter QFA accepts an input string
lows that for any



of all 


and
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 
where 

3. Multihead Quantum Finite Automata
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.
We show that 1QFA(2) is more powerful than 1RMFA(2).
3.1. 1-Way Multihead Quantum Finite State Automata (1QFA(k))
Definition 4. A 1-way multihead quantum finite state automaton is a automaton 
1) Q is a finite set of states,
2) 
3) 
4) 
5) 




a mapping of the form 
A superposition of M is any element in the Hilbert space l2(Q). For

The transition function 










We require all 
Consider the Hilbert space l2(Q), where Q is the set of internal states of a 1QFA(k) M. Suppose that we have a linear operator 




and

Here 


and
for each 
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.
3.1.1. Matrices Representation of Different Automaton
In these section we write transition matrices of different automaton and discuss different properties of these automaton in terms of their transition matrices.
1) Deterministic finite state automaton
A deterministic finite automaton [20] consists of five tuple tuple 
1) Q is a finite set of states,
2) 
3) 
4) 
5) 
We design a deterministic finite state automaton 
The transition matrix of the deterministic finite state automaton is shown in Figure 2.
Here each row of each transition matrix contain exactly one non-zero entry i.e. 1 for deterministic finite state automaton.
Figure 1. The deterministic finite state automaton accepts all length of string having at least one alphabet “b”.
Figure 2. The transition matrix of the deterministic finite state auto- maton accepts all length of string having at least one alphabet “b”.
2) Non-deterministic finite state automaton
An non-deterministic finite automaton [20] is represented essentially like a deterministic finite state auto- maton. It consists of five tuple 
1) Q is a finite set of states,
2) 
3) 

4) 
5) 
The only difference between an non-deterministic finite state automaton and deterministic finite state auto- maton is the value of 

The transition matrix of the deterministic finite state automaton is shown in Figure 4.
There is atleast one row in a transition matrix for non-deterministic automaton which contain more than one non-zero entry.
3) Reversible finite state automaton
An automaton 

1) Q is a finite set of states,
2) 
3) 

4) 
5) 
Figure 3. The non-deterministic finite state automaton accepts all length of string having at least onealphabet “b”.
Figure 4. The transition matrix of the non-deterministic finite state automaton accepts all length of string having at least one alphabet “b”.
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.
We define reversible automaton 
The transition matrix of the above automaton is shown in Figure 6.
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.
4) Probabilistic finite state automaton
A probabilistic finite state automaton [22] over the alphabet 

1) Q is a finite set of states,
2) 





3) 
4) 
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 Figure 7].
5) Quantum finite state automaton
We consider 1-way quantum finite state automata (QFA) as defined in [23] is a tuple 
1) Q is a finite set of states,
2) 
Figure 5. The reversible automaton accept string of a’s of length 3.
Figure 6. The transition matrix of the reversible automaton accepts string of a’s of length of 3.
Figure 7. The sum of each row give 1.
3) 
4) 
5) 

The states in 








The transition matrix of the quantum finite state automaton looks like [Figure 8]:
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.
6) 1-way multihead deterministic finite state automaton
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.
A 1-way multihead deterministic finite state automaton (1DFA(k)) [13] is a tuple 
1) Q is a finite set of states,
2) 
3) 
4) 
5) 

6) 
7) 
We define a 1DFA(2) 

Figure 8. The transition matrix of the automaton contain complex entry.
Figure 9. 1DFA(2) accept a language 
The transition matrix of the above automaton is [see Figure 10].
Each row of transition matrix contain only one 1 which has the same property as deterministic finite state automaton.
7) 1-way Reversible multihead finite state automaton
A 1-way reversible multihead finite state automaton (1REV-DFA(k)) [13] is a tuple 
1) Q is a finite set of states,
2) 
3) 
4) 
square to the right and 0 means to keep the head on the current square,
5) 

6) 
7) 
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 



1) For any two transitions:
and
it holds if
2) There is at most one transition of the form

The non-context free language 


Figure 10. The transition matrix of1DFA(2) accept a language
Figure 11. 1REV-DFA(2) accept a language
The transition matrix of the above automaton is shown in Figure 12.
Dot product of any two row is zero for multihead reversible finite state automaton.
8) 1-way multihead quantum finite state automaton
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 

Figure 12. The transition matrix of 1REV-DFA(2) accept a language
The transition matrix of the above automaton is shown in Figure 14.
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.
3.1.2. Recognition of Language Class
In this section we show that 1QFA(k) has more language recognizing power than 1QFA. 1QFA(2) can recognize regular language 

Theorem 4. 1QFA(2) can accept all unary regular languages.
Proof. In [12] 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
Figure 13. 1QFA(2) accept a language 
Figure 14. The transition matrix of 1QFA(2) accept a language 
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.
Example 1. A 1-way 2-head quantum finite state automaton is a automaton 

Let, 

Define:
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

For both cases the automaton M move to state 



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 
Example 2. A 1-way 2-head quantum finite state automaton is a automaton 

Let, 

Define:
The automaton acts as follows: Initially both heads of the automaton M are at #. After reading the input symbols, the automaton M remains at 









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
Theorem 5. 1QFA(2) is more powerful than 1QFA with respect to recognition of language.
Proof. In Theorem 2 it was proved that the language 
Theorem 6. Given a language 
Proof. In [24] it has been shown that this language consists of subset of words from 
Example 3. A 1-way 2-head quantum finite state automaton is a automaton 

Let, 

Define:
The automaton acts as follows: at each reading of the symbol 
position of two states 


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 


Then at the kth depth 

palindrome and does notbelong to L then no matter what depth we traversed 



Figure 15. Input “abba” is palindrome and hence it is not accepted.
Figure 16. Input “abba” is not palindrome and hence it is accepted.
Theorem 7. 


Proof. The language 
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.
Proof. We know that the transition matrix of 1-way reversible multihead finite state automaton has the following properties:
1) Dot product of any two row is zero for 1-way reversible multihead finite state automaton.
2) All matrices only have 0 or 1 entries.
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.
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))
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 ( [18] [19] ) we know that the language 

Corollary 1. 1QFA(2) is computationally more powerful than 1RMFA(2).
4. Conclusion
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 


Acknowledgements
Research of Debayan Ganguly is funded by the Council of Scientific Industrial Research (CSIR). This support is greatly appreciated.
Cite this paper
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
References
- 1. 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 - 2. 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 - 3. 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 - 4. 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 - 5. Ambainis, A., Bcandry, M., Golovkins, M., Kikusts, A., Mercer, M. and Therien, D. (2004) Algebric Results on Quantum Automata. STACS, 93-104.
- 6. Bertoni, A., Mereghetti, C. and Palano, B. (2003) Quantum Computing: 1 way Quantum Automata. Developments Language Theory, 1-20.
- 7. Ambainis, A. and Watrous, J. (2002) Two Way Finite Automata with Quantum and Classical States. Theoretical Computer Science, 287, 299-311.
- 8. 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.
- 9. Dzelme, I. (2003) Kvantu Automar Jauktajiem Stavokliem. Technical Report, University of Latvia.
- 10. 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 - 11. Rabin, M.O. and Scott, D. (1964) Finite Automata and Their Decision Problems. Sequential Machines, Selected Papers, Addition-Wesley, 63-91.
- 12. 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 - 13. 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 - 14. Morita, K. (2011) Two-Way Reversible Multi-Head Finite Automata. Fundamenta Informaticae, IOS Press, 241-254.
- 15. 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 - 16. 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.
- 17. Qiu, D. and Yu, S. (2006) Hierarchy and Equivalence of Multi-Letter Quantum Finite Automata. Theoretical Computer Science, 356, 190-199.
- 18. Ibarra, H.O. and Ravikumar, B. (2009) On Partially Blind Multihead Automata. Theoretical Computer Science, 410, 3006-3017.
- 19. Wagner, K. and Wechsung, G. (1986) Computational Complexity. D Reidel Publishing Company.
- 20. Hopcroft, E.J.,Motwani, R. and Ullman, D.J. (2012) Introduction to Automata Theory. Languages, and Computation, Pearson, 3rd Edition.
- 21. 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.
- 22. Rabin, O.M. (1963) Probabilistic Automata. Information and Control, 6, 230-245.
http://dx.doi.org/10.1016/S0019-9958(63)90290-0 - 23. Gruska, J. (2000) Quantum Computing. McGraw Hill, 153-157.
- 24. 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.



































































































