quantum finite automata and their simulations
play

Quantum Finite Automata and Their Simulations Gustaw Lippa - PowerPoint PPT Presentation

Quantum Finite Automata and Their Simulations Gustaw Lippa Krzysztof Makie la Marcin Kuta mkuta@agh.edu.pl Department of Computer Science, AGH University of Science and Technology, Krak ow, Poland Krak ow Quantum Informatics Seminar


  1. Quantum Finite Automata and Their Simulations Gustaw Lippa Krzysztof Makie� la Marcin Kuta mkuta@agh.edu.pl Department of Computer Science, AGH University of Science and Technology, Krak´ ow, Poland Krak´ ow Quantum Informatics Seminar (KQIS) 13 October 2020

  2. Outline Motivation Quantum finite automata Library for simulating quantum finite automata

  3. Existing libraries Java Formal Languages and Automata Package (JFLAP) Quirk Quantum++ Q# Qiskit ProjectQ

  4. Types of Finite Automata Classical automata Deterministic Finite Automaton (DFA) Nondeterministic Finite Automaton (NFA) Alternating Finite Automaton (AFA)

  5. Types of Finite Automata Classical automata Deterministic Finite Automaton (DFA) Nondeterministic Finite Automaton (NFA) Alternating Finite Automaton (AFA) Probabilistic automata Probabilistic Finite Automaton (PFA)

  6. Types of Finite Automata Classical automata Deterministic Finite Automaton (DFA) Nondeterministic Finite Automaton (NFA) Alternating Finite Automaton (AFA) Probabilistic automata Probabilistic Finite Automaton (PFA) Quantum automata Measure-Once Quantum Finite Automaton (MO-QFA) Measure-Many Quantum Finite Automaton (MM-QFA) General Quantum Finite Automaton (GQFA)

  7. Deterministic Finite Automaton Deterministic Finite Automaton (DFA) A = (Σ , Q , q 0 , Q acc , δ ) Σ - alphabet, finite set of symbols Q - finite set of states q 0 - initial state, q 0 ∈ Q F - set of accepting states, F ⊆ Q δ : Q × Σ → Q - transition function Determinism condition For all q ∈ Q we have � p ∈ Q δ ( q , σ, p ) = 1

  8. Deterministic Finite Automaton Figure: Internals of Finite Automaton [3]

  9. Deterministic Finite Automaton Figure: Configuration of Finite Automaton [2]

  10. Deterministic Finite Automaton Example 0 1 0 1 0 0 1 0 0 1 1 1 0 1 Figure: Deterministic finite automaton [2]

  11. Nondeterministic Finite Automaton Nondeterministic Finite Automaton (NFA) A = (Σ , Q , q 0 , Q acc , δ ) Σ - alphabet, finite set of symbols Q - finite set of states q 0 - initial state, q 0 ∈ Q F - set of accepting states, F ⊆ Q δ : Q × Σ → 2 Q - transition function

  12. Nondeterministic Finite Automaton Example a 1 2 ǫ a b b ǫ a b b 0 3 4 5 6 a a b ǫ a b 7 8 Figure: Nondeterministic finite automaton [2]

  13. Probabilistic Finite Automaton Probabilistic Finite Automaton (PFA) A = (Σ , Q , π, η, { M σ } σ ∈ Σ ) Σ - alphabet, finite set of symbols π - vector denoting initial distribution of states, π ∈ [0 , 1] 1 × N η - vector encoding accepting states, η ∈ { 0 , 1 } N × 1 { M σ } σ ∈ Σ - set of transition matrices Acceptance probability w = σ 1 . . . σ n P A ( w ) = π M ( σ 1 ) . . . M ( σ n ) η

  14. Measure-Once Quantum Finite Automaton Measure-Once Quantum Finite Automaton (MO-QFA) A = ( Q , Σ , q 0 , F , { U σ } σ ∈ Σ ) Σ - alphabet, finite set of symbols Q - finite set of states q 0 - initial state, q 0 ∈ Q F - set of accepting states, F ⊆ Q { U σ } σ ∈ Σ - set of transition matrices Acceptance probability w = σ 1 . . . σ n P A ( w ) = � P acc U ( σ n ) . . . U ( σ 1 ) | q 0 �� 2 (Moore, C., Crutchfield, J.P.: Quantum automata and quantum grammars. Theoretical Computer Science 237 (1-2), 275–306 (2000) )

  15. Measure-Once Quantum Finite Automaton Dual formulation of automaton Classical Matrix | q 0 � = (1 , 0 , . . . , 0) T Initial state q 0 Transitions δ : Q × Σ × Q → C { U σ } σ ∈ Σ δ ( q i , σ, q j ) U σ ( j , i ) Accepting states F P acc = � q ∈ F | q �� q | Unitarity condition Transition function δ : � 1 q 1 = q 2 � p ∈ Q δ ( q 1 , σ, p ) δ ( q 2 , σ, p ) = 0 q 1 � = q 2 Transition matrix U : U † σ U σ = U σ U † σ = I | Q |

  16. Pumping lemma Theorem (Pumping lemma for regular languages) Let language L be a regular language. Then there exists constant K such that for all w ∈ L, | w | ≥ K there exist x , y , z such that (1) w = xyz (2) | xy | ≤ K (3) | y | ≥ 1 (4) for all i ≥ 0 it holds w i = xy i z ∈ L

  17. Pumping lemma Theorem (Pumping lemma for quantum regular languages) Let language L be recognized by MO − QFA. Then there exists constant K such that for any w and any ε > 0 for any u , v it holds | P A ( xy K z ) − P A ( xyz ) | < ε . Additionally, if automaton A is n-dimensional there exists constant c such that K < ( c ε ) − n

  18. Measure-Once Quantum Finite Automaton Example A = ( Q , Σ , q 0 , F , { U σ } σ ∈ Σ ) Σ = { a } Q = { q 0 , q 1 } F = { q 1 } δ : 1 1 δ ( q 0 , a , q 0 ) = δ ( q 0 , a , q 1 ) = √ √ 2 2 1 δ ( q 1 , a , q 1 ) = − 1 δ ( q 1 , a , q 0 ) = √ √ 2 2 Matrix formulation � 1 � � 0 � | q 0 � = | q 1 � = 0 1 � 1 1 � √ √ � 0 � 0 2 2 U ( a ) = P acc = | q 1 �� q 1 | = 1 − 1 0 1 √ √ 2 2

  19. Measure-Many Quantum Finite Automaton Measure-Many Quantum Finite Automaton (MM-QFA) A = ( Q , Σ , q 0 , Q acc , Q rej , { U σ } σ ∈ Γ ) Σ - alphabet, finite set of symbols Q - finite set of states q 0 - initial state, q 0 ∈ Q Q acc - set of accepting states, Q acc ⊆ Q Q rej - set of rejecting states, Q rej ⊆ Q { U σ } σ ∈ Σ - set of transition matrices Evolution | Ψ � → P non | U | Ψ � p acc → p acc + � P acc | U | Ψ �� 2 p rej → p rej p acc + � P rej | U | Ψ �� 2 (Kondacs, A., Watrous, J.: On the power of quantum finite state automata. 38th Annual Symposium on Foundations of Computer Science, FOCS’97)

  20. Measure-Many Quantum Finite Automaton Acceptance probability w = σ 1 . . . σ n n +1 k − 1 � � ( P non U ( σ i )) � 2 P A ( w ) = � P acc U ( σ k ) k =1 i =1

  21. Example Example A = ( Q , Σ , q 0 , Q acc , Q rej , { U σ } σ ∈ Σ ) Σ = { a } Q = { q 0 , q 1 , q acc , q rej } Q acc = { q acc } Q rej = { q rej } δ : δ ( q 0 , a , q 0 ) = 1 1 δ ( q 0 , a , q 1 ) = √ 2 2 δ ( q 0 , a , q acc ) = 1 δ ( q 0 , a , q rej ) = 0 2 . . . Evolution U ( a ) | q 0 � = 1 1 2 | q 1 � + 1 2 | q 0 � + 2 | q acc � √ U ( a ) | q 1 � = 1 1 2 | q 1 � + 1 2 | q 0 � − 2 | q acc � √ U ($) | q 0 � = | q acc � U ($) | q 1 � = | q rej �

  22. Comparison of MO-QFA and MM-QFA MO-QFA MM-QFA One measurement Many measurements after reading the last symbol after reading each symbol acceptance or rejection acceptance, rejection or continuation Advantages and disadvantages of QFA QFA can be exponetially more space efficent than DFA or PFA Sometimes it is impossible to simulate DFA by QFA (due to limited memory) QFA cannot recognize all regular languages (due to reversibility)

  23. General Quantum Finite Automaton General Quantum Finite Automaton (GQFA) A = ( Q , Σ , q 0 , Q acc , Q rej , { U σ } σ ∈ Γ ) Σ - alphabet, finite set of symbols Q - finite set of states q 0 - initial state, q 0 ∈ Q Q acc - set of accepting states, Q acc ⊆ Q Q rej - set of rejecting states, Q rej ⊆ Q { U σ } σ ∈ Σ - set of transition matrices

  24. Two Formulations of Finite Automata Automaton Transition function Transition matrix

  25. Two Formulations of Finite Automata Automaton Transition function Transition matrix M σ ∈ { 0 , 1 } | Q |×| Q | δ : Q × Σ × Q → { 0 , 1 } NFA

  26. Two Formulations of Finite Automata Automaton Transition function Transition matrix M σ ∈ { 0 , 1 } | Q |×| Q | δ : Q × Σ × Q → { 0 , 1 } NFA M σ ∈ { 0 , 1 } | Q |×| Q | δ : Q × Σ × Q → { 0 , 1 } DFA � p ∈ Q δ ( q , σ, p ) = 1 M σ 1 = 1

  27. Two Formulations of Finite Automata Automaton Transition function Transition matrix M σ ∈ { 0 , 1 } | Q |×| Q | δ : Q × Σ × Q → { 0 , 1 } NFA M σ ∈ { 0 , 1 } | Q |×| Q | δ : Q × Σ × Q → { 0 , 1 } DFA � p ∈ Q δ ( q , σ, p ) = 1 M σ 1 = 1 M σ ∈ [0 , 1] | Q |×| Q | δ : Q × Σ × Q → [0 , 1] PFA � p ∈ Q δ ( q , σ, p ) = 1 M σ 1 = 1

  28. Two Formulations of Finite Automata Automaton Transition function Transition matrix M σ ∈ { 0 , 1 } | Q |×| Q | δ : Q × Σ × Q → { 0 , 1 } NFA M σ ∈ { 0 , 1 } | Q |×| Q | δ : Q × Σ × Q → { 0 , 1 } DFA � p ∈ Q δ ( q , σ, p ) = 1 M σ 1 = 1 M σ ∈ [0 , 1] | Q |×| Q | δ : Q × Σ × Q → [0 , 1] PFA � p ∈ Q δ ( q , σ, p ) = 1 M σ 1 = 1 M σ ∈ C | Q |×| Q | δ : Q × Σ × Q → C MO-QFA U † σ U σ = U σ U † σ = I | Q | � p ∈ Q δ ( q 1 , σ, p ) δ ( q 2 , σ, p ) = δ q 1 = q 2

  29. Two Formulations of Finite Automata Automaton Transition function Transition matrix M σ ∈ { 0 , 1 } | Q |×| Q | δ : Q × Σ × Q → { 0 , 1 } NFA M σ ∈ { 0 , 1 } | Q |×| Q | δ : Q × Σ × Q → { 0 , 1 } DFA � p ∈ Q δ ( q , σ, p ) = 1 M σ 1 = 1 M σ ∈ [0 , 1] | Q |×| Q | δ : Q × Σ × Q → [0 , 1] PFA � p ∈ Q δ ( q , σ, p ) = 1 M σ 1 = 1 M σ ∈ C | Q |×| Q | δ : Q × Σ × Q → C MO-QFA U † σ U σ = U σ U † σ = I | Q | � p ∈ Q δ ( q 1 , σ, p ) δ ( q 2 , σ, p ) = δ q 1 = q 2 M σ ∈ C | Q |×| Q | δ : Q × Σ × Q → C MM-QFA U † σ U σ = U σ U † σ = I | Q | � p ∈ Q δ ( q 1 , σ, p ) δ ( q 2 , σ, p ) = δ q 1 = q 2

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend