Full text
Universidade do Minho Escola de Engenharia Departamento de Inform´ atica Bernardo Almeida Leite Faria Combining Paraconsistent And Dynamic Logic For Qiskit July 2021
Universidade do Minho Escola de Engenharia Departamento de Inform´ atica Bernardo Almeida Leite Faria Combining Paraconsistent And Dynamic Logic For Qiskit Master Dissertation Master Degree in Physics Engineering Dissertation supervised by Lu´ıs Soares Barbosa (Univ. Minho) Alexandre Castro Madeira (Univ. Aveiro) July 2021
i DIREITOS DE AUTOR E CONDIC¸ ˜ OES DE UTILIZAC¸ ˜ AO DO TRABALHO POR TERCEIROS Este ´ e um trabalho acad ´ emico que pode ser utilizado por terceiros desde que respeitadas as regras e boas pr ´ aticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licen c¸ a abaixo indicada. Caso o utilizador necessite de permiss ˜ ao para poder fazer um uso do trabalho em condi c¸ ˜ oes n ˜ ao previstas no licenciamento indicado, dever ´ a contactar o autor, atrav ´ es do Reposit´ oriUM da Universidade do Minho.
ACKNOWLEDGEMENTS Firstly, and foremost, I want to express my genuine gratitude to my supervisor, Prof. Lu ´ ıs Soares Barbosa, and to my co-supervisor Prof. Alexandre Castro Madeira for all the help and patience. Highlighting the opportunity of exploring such a fascinating subject with freedom. My deepest appreciation goes to my family for all the unconditional support from the very start. To my beloved Catarina, a special heartfelt thanks for being the best companion of many moments I could ever wish for. I am grateful to Tuna de Medicina da Universidade do Minho for being a second family, where I could grow as a person and live incredible moments. Finally, thanks to my friends and colleagues. ii
iii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho.
ABSTRACT This dissertation introduces a logic aimed at combining dynamic logic and paraconsistent logic for application to the quantum domain, to reason about quantum phase properties: Paraconsistent Phased Logic Of Quantum Programs (PhLQP◦). In the design PhLQP ◦ , firstly the dynamic was built first, Phased Logic Of Quantum Programs (PhLQP). PhLQP is itself a dynamic logic capable of dealing with quantum phase properties, quantum measurements, unitary evolutions, and entanglements in compound systems , since it is a redesign of the already existing Logic Of Quantum Programs (LQP), [ 14 ], over a representation of quantum states restricted to a space B equipped with only two computational basis, standard and Hadamard. As instances of applications of the logic PhLQP, there is a formal proof of the correctness of the Quantum Teleportation Protocol, of the 2-party and 4-party of the Quantum Leader Election (QLE) protocol, and of the Quantum Fourier Transform (QFT) operator for 1,2and 3qubits . On a second stage, PhLQP was extended with the connective ◦ known as the consistency operator, a typical connective of the paraconsistent logics Logics of Formal Inconsistency (LFIs), [ 8 , 21 , 22 ]. The definition of consistent quantum state and a set of proper paraconsistent axioms for the quantum domain, Fundamental Paraconsistent Quantum Axioms (FParQAxs), were provided. An example of application of PhLQP ◦ is the possibility of express and prove correctness of the universal quantum gate, the Deustch gate . Keywords: Quantum Phase Properties, Dynamic Quantum Logic, Paraconsistent Dynamic Quantum Logic, PhLQP, PhLQP ◦ , Quantum Teleportation Protocol, Quantum Leader Election Protocol, Quantum Fourier Transform , Deustch Gate. iv
RESUMO Esta disserta c¸˜ ao introduz uma l ´ ogica que tem como objectivo combinar l ´ ogica din ˆ amica e l ´ ogica paraconsistente com aplica c¸˜ ao no dom ´ ınio qu ˆ antico, assim como expressar propriedades relacionadas com fases quˆ anticas: PhLQP◦. No projetar da PhLQP ◦ , primeiramente concebeu-se a sua componente din ˆ amica, PhLQP. PhLQP por si s ´ o ´ e uma l ´ ogica capaz de lidar com propriedades de fases qu ˆ anticas, evolu c¸ ˜ oes unit ´ arias, e entrela c¸ amento em sistemas compostos, uma vez que ´ e um redesenhar da j ´ a existente LQP, [ 14 ], sobre uma representa c¸˜ ao de estados qu ˆ anticos restrita a um espa c¸ o B munido de apenas duas bases computacionais, standard e Hadamard. Como inst ˆ ancias de aplica c¸˜ ao da l ´ ogica PhLQP, h ´ a uma prova formal para a corre c¸˜ ao do protocolo de Teletransporte Qu ˆ antico, para o protocolo QLE para uma party quer de 2quer de 4agentes , e para o operador de QFT de 1,2, e 3qubits . Numa segunda fase, PhLQP ´ e extendida com a conectiva ◦ , conhecida como operador de consist ˆ encia, uma conectiva caracter ´ ıstica das LFIs, [ 8 , 21 , 22 ]. E a partir desta conectiva a defini c¸˜ ao de estado qu ˆ antico consistente e um conjunto de axiomas paraconsistentes pr ´ oprios para o dom´ ınio quˆ antico, FParQAxs. Um exemplo de aplica c¸˜ ao da PhLQP ◦´ e a possibilidade de expressar e permitir corre c¸˜ ao para o comportamento da gate quˆ antica universal, a Deutsch-gate. v
CONTENTS 1 introduction 1 1.1Context 1 1.2Motivation 3 1.3Contributions 3 1.4Outline 3 2 dynamic logics for quantum programs 5 2.1From Quantum Logic to Dynamic Quantum Logic 5 2.2Dynamic Quantum Logic 7 2.2.1The Quantum Space and Frames 7 2.2.2Syntax of PhLQP 37 2.2.3Semantics of PhLQP 42 2.2.4Proof Theory for PhLQP 44 2.3Worked Examples 66 2.3.1Quantum Teleportation Protocol 66 2.3.2Quantum Leader Election Protocol 67 2.3.3Quantum Fourier Transform 70 3 combining paraconsistent and dynamic logic for quantum programs 77 3.1Some Preliminary Definitions on Propositional Logics 77 3.2Paraconsistent Logics 82 3.2.1Negation and Paraconsistency 82 3.2.2Logics of Formal Inconsistency 83 3.3 Paraconsistent Logics in Quantum Computing: Paraconsistent Turing Machines 88 3.4A Paraconsistent Approach of PhLQP 91 3.4.1The Quantum Space and Paraconsistent Quantum Frames 91 3.4.2PhLQP as a Logic of Formal Inconsistency 94 3.5Examples of Inconsistency in Quantum Computing 101 3.5.1A Paraconsistent View on the Hadamard Gate 101 3.5.2The Deustch Gate 102 4 conclusions and prospect for future work 107 4.1Conclusions 107 4.2Prospect for future work 108 vi
LIST OF FIGURES Figure 1Example of a quantum circuit where Proposition 2.2.7holds . 26 Figure 2 Example of a quantum circuit where Proposition 2.2.7does not hold .26 Figure 3Example of a quantum circuit where Proposition 2.2.8holds . 27 Figure 4X-gate with input-vector v∈ B and output-vector w∈ B .28 Figure 5Y-gate with input-vector v∈ B and output-vector w∈ B .29 Figure 6Z-gate with input-vector v∈ B and output-vector w∈ B .30 Figure 7H-gate with input-vector v∈ B and output-vector w∈ B .31 Figure 8Rk-gate with input-vector v∈ B and output-vector w∈ B .32 Figure 9CRk -gate with separable input-vectors v1∈B(1) and v2∈B(2) , as well as an non-entangled output-vector w∈ B =B(1)⊗B(2).33 Figure 10 CRk -gate with separable input-vectors v1∈B(1) and v2∈B(2) , as well as an non-entangled output-vector w∈ B =B(1)⊗B(2).34 Figure 11 Quantum Teleportation implementation by QCM . 66 Figure 12 2-party QLE implementation by QCM . 68 Figure 13 4-party QLE implementation by QCM . 69 Figure 14 A two-qubit QFT gate implementation by QCM . 71 Figure 15 A three-qubit QFT gate implementation by QCM . 74 Figure 16 A Hadamard-gate with an input state sand an output state s0.101 Figure 17 A possible quantum circuit illustration for the Dθ-gate. 105 Figure 18 A simple quantum program with the Dθ-gate. 105 vii
1.1. Context 2 The second postulate describes how a state |ψiof a quantum mechanical system evolves over time. postulate 2: The evolution of a closed quantum system can be described by an unitary transformation. Therefore, a state |ψi of the system at an instant of time t is related to the state |ψ0i at an instant of time t0 by a unitary operator U which only depends on the instant of time tand t0: |ψi=Uψ0. Finally, the third postulate describes the nature of the quantum measurement. postulate 3: Quantum measurements can be described by a set M of measurement operators. So when the system is being measured this set of operators acts on the state space, e.g. if the state of a quantum system is |ψi promptly before the measurement then the outcome of the measurement occurs with a probability pgiven by: p=hψ|M†M|ψi. The inherent information to QCM is Quantum Information (QI). QI is a more denser kind of information than the classical one, since it allows superposition state such |ψi as a information state. |ψican be described as the following linear combination : |ψi=α|0i+β|1isuch that |α|2+|β|2=1 In this way, if someone asks: ” Is the qubit in the state |0i or in the state |1i ?”, it would be very tempting to answer this question with: ”The qubit is in both states”. Therefore, it is possible to say that this information seems contradictory, although at a physical level such a contradiction vanishes when a quantum measurement is performed. On the other hand, before collapsing the superposition state with a quantum measurement it is not possible to predict with total certain its that such state will collapse. This leads to the question whether a paraconsistent logics,e.g. LFIs, may help in reasoning about quantum systems. Some attempts to answer this question can be found in the work of J. C. Agudelo and W. Carnielli, in [ 6 , 7 ], through the concept to Paraconsistent Turing Machine (ParTM).
1.2. Motivation 3 1.2 motivation A quantum dynamic logic is a logic capable of characterize a quantum state by the transitions specified by the quantum program, providing a way to express the inherent quantum state to the quantum program over time. Although there is a certain variety of quantum dynamic logics [ 10 , 11 , 14 , 18 ], non-so far embeds paraconsistent features in order to reason over QI, as well as a way of express quantum phases. A paraconsistent logic is a logic capable of treat apparently contradictory information, e.g., quantum superposition states, as more “informative” information. In other words, it is a logic that can take profit from contradictions, to characterize information. Combining paraconsistent features such as observed in LFIs ([ 6 , 7 , 8 , 21 ]) with a quantum dynamic logic able of express quantum phases may perhaps be an option to express the behaviour of quantum systems/programs. 1.3 contributions The contributions of this dissertation can be summarized as follows: 1. An exhaustive study about dynamic quantum logics, as well as of paraconsistent logics. 2. A dynamic quantum logic able to express phases of quantum states: PhLQP 3. A attempt of embedding paraconsistent features in a dynamic quantum logic: PhLQP ◦ . 4. A way to express the behaviour of the Deutsch-Gate through a dynamic paraconsistent quantum logic. 1.4 outline The first section of Chapter 2provides a contextualization for the chronological path leading from Quantum Logic to Dynamic Quantum Logic, as well as a review of literature with important background concepts related do the later. Section 2.2consists of the development of the logic PhLQP, starting with the characterization of the quantum space and frames, its syntax, semantics and proof theory. The final section presents some worked examples showing PhLQP at work. Chapter 3, in its Section 3.1, provides background for some preliminary concepts on propositional logics, along with background for paraconsistency in Section 3.2. Additionally, there is a contextualization and review of literature on paraconsistent logics in quantum computing in Section 3.3Section 3.4combines PhLQP with paraconsistent features. In the final Section 3.5examples of inconsistency in quantum computing, related, for example, to
1.4. Outline 4 the behaviour of the Deutsch gate, are discussed. Finally, Chapter 4concludes and provides a number of suggestions for future work .
2 DYNAMIC LOGICS FOR QUANTUM PROGRAMS 2.1 from quantum logic to dynamic quantum logic QL has its origins in Garret Birkhoff and John von Neumann article [ 19 ], where is stated that the logic inherent to the formalism of QM is a non-classical one, i.e. it is stated that QM forces to adopt a non-Boolean logic [ 25 , 26 , 37 ], since reasoning with a Boolean logic over quantum entities will give rise to quantum paradoxes, [ 3 ]. Consequently, a few decades after, in late 1950’s, the article has caused the flourish of the question, whose attempt to understanding has bloomed in the 1970’s among the scientific community, about if QM implies the necessity of giving up the fundamental principles of classical propositional logic, [34]. More recently, in earlier 2000’s, a trend towards a dynamic approach of QL emerged mainly by A.Baltag and S.Smets in the paper [ 12 ], by holding the concept of quantum information systems in a dynamic way (i.e. in a such way that a state of a quantum system is characterized only by the quantum actions which can be successfully executed on this same state) through an axiomatization for a Logic of Quantum Actions (LQA) [ 15 , 16 , 17 ] called Quantum Transition System (QTS). Therefore , in this way , this paper [ 12 ] has established a connection between the traditional QL and the proper requirements of QC by giving a perspective of quantum structures [ 35 ] that regards their fundamental logical dynamics, which includes the late 1990’s developments in modal logic, e.g. [50]. quantum transition systems [ 12 , 13 ]. QTSs , as Hilbert spaces structured as non-classical relational models of Propositional Dynamic Logic (PDL), [ 36 ], are defined by a set of states Σ , and by a family of elementary transitions relations between states in Σ , −→⊆ Σ×Σ . The states are intended to express possible states of a physical system , while the transition relations depict the transformations of state induced by possible actions that can be executed on the system. In a Hilbert space H , the “states” are one-dimensional subspaces of H denominated by rays, while the actions are expressed by certain linear maps on H . Moreover, there are two core kinds of elementary actions: “ quantum tests” ϕ? ( {ϕ? −−→} ) and “quantum gates “ U ( {U −−→} ) . Tests express successful measurements of certain yes/no 5
2.1. From Quantum Logic to Dynamic Quantum Logic 6 property ϕ , with a test ϕ? standing as a projector onto ϕ in a Hilbert space H . Quantum gates U correspond to reversible evolutions of the observed system, with them standing for unitary transformations in a Hilbert space H. logic of quantum actions [ 13 , 17 ]. LQA is a Boolean logic. In LQA, the propositional connectives meet all the classical laws of propositional logic: characteristic formulas of dynamic logic refer to potential properties of quantum states, which in a Hilbert space H match to arbitrary unions of rays. The bivalence of LQA becomes from the fact of any such quantum property holding or not at a given state. The negation ¬ϕ of a certain quantum property ϕ basically expresses the reality where the property ϕ does not hold . In this sense , there is a ¬ - bivalent interpretation. Nonetheless, in LQA there are some expressible properties which aren’t “testable” (i.e., there are properties that do not correspond to an ”experimental” property) . In specific, the negation does not preserve the “testability” of a property, i.e. the negation of a testable property may not be testable. Also, in LQA the testable properties are the properties that can be expressed by negation free formulas. This is, any formula made without the use of Boolean negation implies a testable property. a special feature of LQA [ 13 ]. LQA has the special feature of embedding a reinterpretation of traditional QL through a dynamic interpretation of the non-classical connectives of QL . Therefore, through the definition of the orthocomplement ∼ϕ of a property as the impossibility of a successful test, i.e. ∼:= [ϕ?]⊥ , the quantum join can be define by means of de Morgan law : ϕtψ:=∼(∼ϕ∧ ∼ ψ) . Quantum join depicts all possible superpositions of states satisfying ϕ and states satisfying ψ . The “quantum implication “, also known as Sasaki hook, is basically obtained by the weakest precondition of a “test” : ϕS −−→ ψ:= [ϕ?]ψ . A “concrete” example of a QTS is a QF, and a “concrete” example of a LQA is the LQP. Both the notion of a QF and the LQP are presented in the paper [ 14 ] by A.Baltag and S.Smets. the logic of quantum programs [ 14 ] . LQP is a logic of a finitary syntax and a relational semantics which is able of dealing with elementary actions as unitary transformations , complex actions as quantum measurements, and quantum entanglements in compound systems. Therefore, LQP is a dynamic logic with the objective of reasoning about quantum information flow in quantum programs. a probabilistic variation of LQP [ 10 , 11 , 18 ] A probabilistic variation of LQP is the Probabilistic Modal Dynamic Logic of Quantum Programs (PLQP). PLQP by itself is aQuantum Probabilistic Dyadic Second-Order Logic (QPDSOL) . So, PLQP is a logic gifted with tensor operators to express inherent properties of compound systems (e.g. the capacity of
2.2. Dynamic Quantum Logic 7 expressing whether a state is separable or entangled), and with probabilistic predication formulas P≥r(s) asserting that a quantum state in a state s will have a successful quantum test (i.e. a quantum test with the answer “yes” ) with a probability of at least r every time a quantum measurement is performed over property P . In PLQP, there is also two second-order quantifiers, one applicable over quantum testable properties, the other one over quantum “actions”. All the so far mentioned logics seem to fail at expressing quantum phase fundamental properties, leading to a main question: “How a logic capable of expressing quantum phase properties would be ?”. In the next Section 2.2it will be an attempt to answer this question by re-interpret the LQP over an unorthodox concept of quantum states. This is, quantum states will be seen more likewise “vectors” (instead of rays) and expressed by pairs. So, it is possible to have a very similar approach of interpreting quantum states as presented in the paper [40]: many states share the same ray. 2.2 dynamic quantum logic 2.2.1The Quantum Space and Frames the quantum finite dimension space It is possible to characterize the quantum mechanics ”workspace” as a finite dimension Hilbert space H , similarly as described in the paper [ 2 ] by S.Abramsky and B.Coecke. However, the state space were the logic PhLQP presented in the sequel will work is denoted by B . B is equipped with only two bases: the standard basis ({|0i,|1i}) and the Hadamard basis ({|+i,|−i}): •|+i=|0i+|1i √2, •|−i=|0i−|1i √2. An element of B is a vector v with the form of eiθ|σi such that |σi∈ {|0i,|1i,|+i,|−i} , and 0 ≤θ<2π. Astate of the logic PhLQP will be described as the product of two sets: Σ×Φ . The set Σ will hold the information about the basis of the state/vector, and the set Φ will hold the information about the phases related to the state/vector. Let φ be an element of Φ , φ∈Q with 0≤φ<1 , it is possible to express a phase θ of a vector v∈ B by: θ=2π.φ. Such that a vis represented by: v=eiθ|σi=e2πi.φ|σi,σ∈Σ,φ∈Φ.
2.2. Dynamic Quantum Logic 8 A vector v∈ B represents a quantum state in the conventional sense, i.e., an element of and an Hilbert space, i.e., v∈ B ⊂ H. Example 2.2.1(Representing quantum states I) The following set of pairs (σ,φ): {(0, 0),(1, 1 4),(1, 1 2),(−,1 2),(+,1 4)} Represent the following quantum states : {e2πi.0 |0i,e2πi.1 4|1i,e2πi.1 2|−i,e2πi.1 4|+i}={|0i,i|1i,−|1i,−|−i,i|+i} ={|0i,i|1i,−|1i,−(|0i−|1i √2),i(|0i+|1i √2)}. For every state space B there is a unique morphism f:B −→ Σ×Φ denominated by universal arrow and denoted by the product of morphisms hfΣ,fΦi with fΣ:B −→ Σ and fΦ:B −→ Φ . There are two projection morphisms πΣ:Σ×Φ−→ Σ and πΦ:Σ×Φ−→ Φ such that: πΣ◦hfΣ,fΦi=fΣ∧πΦ◦hfΣ,fΦi=fΦ. Let be a vector v∈ B, it is possible to abbreviate f(v)by v. Compound systems can be expressed by tensor products of the component systems. Consequently, in compound systems,entanglement can appear due to the fact of a vector in B1⊗B2 be given by the following type of expression : ψ⊗γ= n ∑ i=1 αi.(ψi⊗γi) Where αi is the coefficient related to the probability of the state ψi⊗γi and ψ⊗γ∈ B1⊗B2,ψ∈ B1,γ∈ B2. Sequentially , there is : ψ⊗γ=e2πi((fΦ(ψ)+ fΦ(γ)) mod 1)|fΣ(ψ)fΣ(γ)i With : •fΣ(ψ)=fΣ(ψ1)fΣ(ψ2). . . fΣ(ψn) •fΣ(γ)=fΣ(γ1)fΣ(γ2). . . fΣ(γn)
2.2. Dynamic Quantum Logic 9 •fΦ(ψ)=n ∑ i=1 fΦ(ψi) •fΦ(γ)=n ∑ i=1 fΦ(γi) Example 2.2.2(Representing quantum states II) For the following quantum states ψ=e2πi(3 2)(|00i+|01i √2) and γ=e2πi(1 2)|11i: • fΣ(ψ) = 1+ • fΣ(γ) = 11 • fΦ(ψ) = 3 2 • fΦ(γ) = 1 2 Which corresponds to the following set of pairs : {(1+,3 2) | {z } ψ ,(11, 1 2) | {z } γ }. There is : ψ⊗γ=e2πi(( 3 2+1 2)mod 1)|1+11i =e0|1+11i=|1+11i =|1011i+|1111i √2. With the pair (1+11, 0)representing the quantum state given by ψ⊗γ. The adjoint map of a linear map m:B −→ B is the linear map m†:B −→ B such that for all ψ,γ∈ B: hγ|m(ψ)iB=Dm†(γ)ψEB. Aunitary transformation is a linear isomorphism U:B −→ B such that U−1=U†:B −→ B, and : •U†◦U=U−1◦U=idB. •U◦U†=U◦U−1=idB.
2.2. Dynamic Quantum Logic 10 With idBrepresenting the identity map on B: idB:B −→ B idB(ψ) = ψ,∀ψ∈ B . Unitary transformations preserve the inner product: U(ψ)U(ψ0)B=DUU†(ψ)ψ0EB. Self-adjoint operators are linear transformations M:B −→ B that hold M=M†. The elementary data transformations are unitary transformations, therefore are reversible, e.g. quantum gates. In a quantum system , a realizable measurement is represented by self-adjoint operators, such as projectors. Thereby, for any closed linear subspace S ⊆ B , a projector PS:B −→ B onto Sis obtained by : PS(s+s0) = s,∀s∈ S,s0∈ S⊥ Also, projectors are linear, idempotent ( Pi◦Pi=Pi ) , self-adjoint ( Pi=P† i ) and mutually orthogonal ( Pi◦Pj=0, i6=j ) . Therefore, a measurement can be interpreted as a set of projectors, although in a successful measurement just one of the projectors ”survives” and the measurement’s result is given by this projector. quantum frames for single-systems For a given space B , it is possible to construct a PhQF, i.e. a QTS with the concept of phase notion, Σ×Φ(B):= (Σ×Φ,{P? −−→}P∈L,{U −−→}U∈U) by taking in to account the respective considerations: 1. For any non-zero vector v∈ B it is possible to denote a state s∈Σ×Φ by the vector which generated it, i.e. s=v . A state s will be represented by a pair (σ,φ)∈Σ×Φ . Consequently, two vectors that differ only in phase will be distinguishable by the second element of their corresponded pairs as states . Example 2.2.3(Two vectors and two states) Suppose that v and w∈ B are two vectors with : v=|0iand w =e2πi.(1 4)|0i
2.2. Dynamic Quantum Logic 11 and two states s and t ∈Σ×Φsuch that : s=v= (0, 0)and t =w= (0, 1 4) Then the states are phase distinguishable : πΦ(s)6=πΦ(t). Definition 2.2.1(State equality) For two states s and t are the same state if and only if πΣ(s) = πΣ(t)and πΦ(s) = πΦ(t). 2. Two states s and t in Σ×Φ are orthogonal, s⊥t , if for any two vectors v∈s and w∈tare orthogonal. In other words: If ∀v∈s,∀w∈t,hv|wi=0 with hfΣ(v)|fΣ(w)i=0 and fΦ(v) = fΦ(w) Or equivalently , Iff ∃v∈s,w∈twith v6=0, w6=0 and hfΣ(v)|fΣ(w)i=0 and fΦ(v) = fΦ(w). Therefore, for a set of states S⊆Σ×Φ, it is possible to write : S⊥:={t∈Σ×Φ|t⊥s,∀s∈S} or S⊥:={t∈Σ×Φ|πΣ(t)⊥πΣ(s)and πΦ(t)⊥πΦ(s),∀s∈S}. With : •πΣ(s)⊥πΣ(t) standing for the orthogonality relation between the first element of the pair of the state s and the first element of the pair of the state t , i.e. the relation of orthogonality between the basis of sand t; •πΦ(s)⊥πΦ(t) representing the orthogonality relation between the second element of the pair of the state s and the second element of the pair of the state t , i.e. the relation of orthogonality between the phases of sand t; •S⊥ identifies the orthogonal set of S , this is S⊥ as the set of orthogonal states of the states of S .
2.2. Dynamic Quantum Logic 18 1. Partial functionality: If s S?=SΣ?×SΦ? −−−−−−−→ t and s S?=SΣ?×SΦ? −−−−−−−→ v then t =v. 2. Trivial tests: ∅? −−→=∅ and ∆Σ×Φ? −−−→=∆Σ×Φ , with ∆Σ×Φ={(s,s):s∈Σ×Φ} as the identity relation on (Σ×Φ)×(Σ×Φ). 3. Atomicity. States are testable, i.e. {s}∈L . In other words , this is the same as saying that ”distinguishable of states can be caused by tests ”, i.e. if s 6=t then ∃P∈ L :πΣ(s)⊥πΣ(P),πΣ(t)6⊥ πΣ(P) or πΦ(s)6=πΦ(P),πΦ(t) = πΦ(P) 4. Adequacy. A state cannot be changed by testing a true property : if s ∈P then s P? −−→ s 5. Repeatability. Every testable property holds after a successful test : if s P? −−→ t then t ∈P 6. Compatibility: If S and T are testable, i.e S,T∈ L and S?; T?=T?; S?then S?; T?= (S∩T)?. 7. Self-Adjointness: if s P? −−→ w−→ t then ∃v∈Σ×Φsuch that t P? −−→ v−→ s . 8. Proper Superposition. In a quantum system every two states can be properly superposed into a new state, a state of superposition: ∀s,t∈Σ×Φ∃w∈Σ×Φs−→ w−→ t. 9. Unitary Reversibility and Totality. Elementary unitary evolutions are totally bijective functions with their adjoint as their inverse: U;U†=U†;U=id with id as the identity map . 10. Orthogonality Preservation. Elementary unitary evolutions preserve (non)-orthogonality: For s,t,s0,t0∈Σ×Φwith s U −−→ s0and t U −−→ t0there is : s −→ t iff s0−→ t0. Proof 2.2.3(Theorem 2.2.2) The proof will be done step-by-step, this is there will be a proof for each point of Theorem 2.2.2. Therefore:
2.2. Dynamic Quantum Logic 19 1. Partial functionality is a consequence of projectors being partially defined maps in B . And therefore, is possible to conclude that states are equal by the condition of state equality, i.e. Definition 2.2.1. 2. Trivial tests come from the fact that by making a projection on the empty space outcomes the empty space by itself , and by making a projection of the total space keeps everything unchanged. 3. Atomicity derives from the fact that states are the product of two one-dimensional closed linear subspaces, i.e. atoms of the lattice of all closed linear subspaces. 4. Adequacy arises from the fact that for all x ∈W there is PW(x) = x . 5. Repeatability comes from the fact that PW(x)∈W for all x ∈ B. 6. Compatibility is a consequence of that of two projectors commuting, i.e. if PW◦PV=PV◦PW , then PW◦PV=PW∩V. 7. Self-Adjointness can be seen as consequence of the fact that projectors are self-adjoint (i.e. P=P†=⇒P?†=P? ) and also sustained by Adjointness theorem, Theorem 2.2.3stated below. 8. Proper Superpositions can be proved by taking into account the following cases: a) If πΣ(s)6⊥ πΣ(t), i.e. let s −→ t then w =s=⇒s−→ s−→ t . b) If πΣ(s)6⊥ πΣ(t), i.e. let s 6−→ t then let s =x,t=y with x,y∈ B. c) Considering the superposition x+y∈ B of x and y notice that x+y6=0 due to the fact that x +y=0=⇒x=−y=⇒s=t would refute πΣ(s)6⊥ πΣ(t). d) Sequentially notice that x6⊥ (x+y) (Also, by considering the scenario of x⊥(x+y) , it will be hx|x+yi=0 and then hx|xi+hx|yi=0; however x⊥y only implies hx|yi=0 . Therefore, from hx|xi=0 follows that x=0 , which yields a contradiction). In this way of thinking, there is also y 6⊥ (x+y). 9. Unitary Reversibility and Totality is a consequence of the definition of a unitary operator . 10. Orthogonality Preservation can be proven also as consequence of the definition of a unitary, but also by considering the Definition 2.2.2of state orthogonality, e.g. by take into account the following Example 2.2.6 Example 2.2.6 Suppose that for a given state s= (1, 0) and a unitary evolution U such that: sU −−→ s0= (0, 0) ∴If s0−→ t0then t0= (0, 0) And s −→ t= (1, 0) ∵(1, 0) = tU −−→ t0= (0, 0)
2.2. Dynamic Quantum Logic 20 Therefore, s −→ t iff s0−→ t0. End of proof . Theorem 2.2.3(Adjointness) For a quantum map F and states s,w,t∈Σ×Φ: If s F −−→ w−→ t then there exists some state v ∈Σ×Φsuch that t F† −−→ v−→ s. Proof 2.2.4(Theorem 2.2.3) In order to proof Theorem 2.2.3, it will be considered the definition of adjoint map in Hilbert Space, i.e. F†(x)y=hx|F(y)i. ∴DF†(x)yE=0iff hx|F(y)i=0 Or equivalently, fΣ(F†(x)) ⊥fΣ(y)iff fΣ(x)⊥fΣ(F(y)) ∀x,y∈ B . Consequently, by considering the negation of both side and take into account the Definition 2.2.6, i.e. the fact that the measurement relation s−→ t can be seen as the non-orthogonality πΣ(s)6⊥ πΣ(t) , it is possible to obtain the following equivalence: ∃w(xF −−→ w−→ y)iff ∃v(yF† −−→ v−→ x) Therefore, the Theorem 2.2.3has been proven. As a consequence there are Corollary 2.2.3.1and Corollary 2.2.3.2. Corollary 2.2.3.1For every property P ⊆Σ×Φand every linear map F there is : P⊆[F]hF†i♦P Corollary 2.2.3.2If F is a quantum map, then : F†(s†) = ([F]s⊥)⊥ Proof 2.2.5(Corollary 2.2.3.2) By considering the negation of the measurement relation, Definiton 2.2.6, as the orthogonality relation ⊥and Theorem 2.2.3of adjointness there is : s⊥F†(t)iff t†⊥F(s) Or equivalently, s∈(F†(t))⊥iff F(s)∈t†
2.2. Dynamic Quantum Logic 21 Which follows that (F†(t))⊥= ([F]t†)⊥ . Also by the Definition 2.2.5of adjoint and adjoited state, F†(t)is a single state, i.e. t†with t†as a testable property. Therefore: F†(t) = (F†(t))⊥⊥ = ([F](t†)⊥)⊥= (t⊥⊥)†=t† Thereby, with the results presented in Proof 2.2.5it is possible generalize the the concept of adjoint to all quantum actions : Definition 2.2.12 (Adjoint of a Quantum Action) For every quantum action R⊆(Σ×Φ)× (Σ×Φ)it is possible to define a relation R†⊆(Σ×Φ)×(Σ×Φ)by : R†(s†) = ([R]s⊥)⊥ Proposition 2.2.3 For all quantum actions R,Z⊆(Σ×Φ)×(Σ×Φ) , states s,t∈(Σ×Φ) and properties S ⊆(Σ×Φ), there are : 1. R†is a quantum action. 2. if R=F is a map then the adjoint of the quantum action R† coincides with the Hermitian adjoint F†, with F as a linear map. 3. s ⊥R†(t)iff t†⊥R(s). 4.(R;Z)†=Z†;R†. 5.(R∪Z)†=R†tZ†. 6. R[S†] = ([R†]S⊥)⊥. Proof 2.2.6(Proposition 2.2.3)Proof of Proposition 2.2.3. • Point 1,2and 6are a direct consequence from Definition 2.2.12. • The proof of Point 3is equal to Proof 2.2.5by consider R instead of F. • Point 4follows from the Hermitian nature of the quantum actions. • Point 5follows from the Hermitian nature, as well as the union of R∪Z standing for e non-deterministic union of quantum action. Therefore, the following quantum join R†tZ†. • Point 6: R[S†] = ([R†]S⊥)⊥=R(S†) = R[S†].
2.2. Dynamic Quantum Logic 22 quantum frames for compound systems Through the expansion of PhQF it is conceivable a quantum frame for compound systems, i.e. a quantum frame for quantum systems with more than one qubit . Therefore, by considering a two-dimensional B space and by establish a natural number n≥2 such that there is a set N={1, 2, . . . , n} , it is possible to define a quantum frame for compound systems as the quantum frame Σ×Φ(Bn) constructed on the following space : Bn=B⊗n=B⊗B⊗···⊗B | {z } n times Consequently, it will be taken into account all the n copies of B as distinguishable by denoting B(i)as the i-th component of the tensor B⊗n, i.e. Bn=B⊗n= n O i=1 B(i) On the other hand, for a given set of indices I⊆Nthere is : BI=B⊗I=O i∈I B(i) Remark 2.2.9For the case where I = N there is BI=BN=Bn=B. Also, there is a canonical isomorphism between B and B(i) denoted by εi:B−→ B(i) . This kind of notation can be expanded to any set I⊆N of indices of length |I|=k in order to denote a canonical isomorphism between the spaces B⊗k and BI , i.e. εI:B⊗k−→ BI . In this way of thinking, for each set I⊆N there is a canonical isomorphism between the spaces BI⊗BN\Iand B, i.e. µI:BI⊗BN\I−→ B. Sequentially, for every vector |xi∈B, there is : |xi⊗I=O i∈I|xii Remark 2.2.10 Let |xi⊗Ibe a vector with the following form |xi⊗I=e2πiφx|σxi, there is: •φx= ( ∑ i∈I φi)mod 1 •σx∈ {0, 1, +,−}k Posteriorly, for a given set I⊆N it is possible to say that a state s∈Σ×Φ(B) has its I-qubits in a state sI=s0∈Σ×Φ(BI) , if there are some vectors ψ∈s,ψ0∈ BI,ψ00 ∈ BN\I such that :
2.2. Dynamic Quantum Logic 23 ψ=µI(ψ0⊗ψ00) Definition 2.2.13 (Local state) If there is a given state s which is I-separated then there is a unique state sIdesignated as the I-local state of s. Remark 2.2.11 For the case where I={i} , the local component si∈ B{i}=B(i) is denominated the {i}-th coordinate of the state s. Furthermore, to refer to a state originated by a pair of qubits, by removing the Dirac’s notation, there is, e.g., (00, φ):=e2πi.φ|00i=e2πi.φ(|0i⊗|0i) . The Bell states will be written as follows: •φβ00 :=e2πi.φ √2(|00i+|11i). •φβ01 :=e2πi.φ √2(|01i+|10i). •φβ10 :=e2πi.φ √2(|00i−|11i). •φβ11 :=e2πi.φ √2(|01i−|10i). •φγ:=e2πi.φ 2(|00i+|01i|11i+|10i) Proposition 2.2.4([14]) Given two spaces B(i) and B(j) there is a bijective correlation ψ between the linear maps F:B(i)−→ B(j) and the states B(i)⊗B(j) . Therefore, by consider {ε(i) α}α and {ε(j) β}β as the basis of these spaces, the correlation ψis given by the following mapping: F=∑ αβ mαβ Dε(i) α−E.ε(j) β into the following state : ψ(F) = ∑ αβ mαβ .ε(i) α⊗ε(j) β. Proposition 2.2.5([14]) For B=B⊗n and W = {x⊗|0i⊗(n−1):x∈B} , any linear map F:B −→ B induces a linear map F(1):B−→ B in such canonical way that is defined as the unique map on B that satisfy F(1)(x) = PW◦F(x⊗|0i⊗(n−1)). Remark 2.2.12 Any linear map G:B−→ B can be denoted by G=F(1) for a linear map F:B −→ B.
2.2. Dynamic Quantum Logic 24 Consequently, it is possible to describe a compound state in B(i)⊗B(j) by a given linear map F on B . Therefore, for the case where F:B −→ B is such linear map and F(1):B−→ B be a map as the map of Proposition 2.2.5, F(1) will induce a correlated map F(ij) (1):B(i)−→ B(j) by writing : F(ij) (1):=εj◦F(1)◦ε−1 i with εi standing for the canonical isomorphism between B and the given i -th component B(i)of B⊗n. Thusly , it is possible to specify the state F(ij)by writing : F(ij)=ψ(F(ij) (1)) with ψdenoting the bijective correlation between B(i)−→ B(j)and B(i)⊗B(j). Proposition 2.2.6([14]) For a linear map F:B −→ B , it is possible to say that the state F(ij) is an entangled state attending to F , i.e. if F(1)(|xi) = |yi and also if F(ij)∈B(i)⊗B(j) is a state of system composed by two qubits , then by performing a measurement on qubit i with xi as the outcome state will collapse the qubit j to a state yj. Additionally, it is possible to expand the concept and notation of F(ij) in order to define a property, i.e. a set of states F(ij)⊆Σ×Φ=Σ×Φ(B) defined as the set of all states with {i,j}-qubits in the state F(ij): Fij ={s∈Σ×Φ:s{i,j}=F(ij)} ={µ{i,j}(ψ⊗ψ0):ψ∈F(ij),ψ0∈ BN\{i,j}} ⊆ Σ×Φ with µ{i,j}representing the canonical isomorphism between B{i,j}⊗BN\{i,j}. Remark 2.2.13 Notice that Fij it is merely the property of a state composed by n-qubits with its i -th and j-th separated from the other qubits and in a state that is entangled attending to F . Definition 2.2.14 (Local properties and separation) For a set I⊆N , it is possible to define a property S⊆Σ×Φ as local in I if it corresponds to a property of a subsystem composed by the I-qubits, i.e. if there is some property S0⊆Σ×Φ(BI)so that : S0={s∈Σ×Φ:sI∈S0} or equivalently: S0={µI(ψ⊗ψ0):ψ∈S0,ψ0∈ BN\I} Example 2.2.7Fij is an {i,j}-local property.
2.2. Dynamic Quantum Logic 25 Thusly, the family of local properties shapes a complete lattice with inclusion and its join obtained by the union S∪T . Also, the local states are the atoms of this lattice with the greatest element as the following property: >Σ×Φ I={s∈Σ×Φ:sis I−separated}=[{S⊆Σ×Φ:Sis I−local} which defines separation. Remark 2.2.14 It is possible to say that a state s is I-separated iff s ∈ >Σ×Φ I. Finally, notice that the local properties forms a family which is closed under union and intersection, however not under complementation. Definition 2.2.15 (Local Maps) For I⊆N , there is a linear map I -local map F:B −→ B if F ”acts” only on the I-qubits; this is, if there is a map G :BI−→ BIsuch that: F◦µI(ψ⊗ψ0) = µI(G(ψ)⊗ψ0) A map F:Σ×Φ−→ Σ×Φ if it is the map induced on Σ×Φ through I -local linear map on B . Example 2.2.8 All quantum gates that affect only the I -qubits are I -local maps, i.e. unitary transformations UI:B −→ B such that : UI◦µI(ψ⊗ψ0) = µI(U(ψ)⊗ψ0),∀ψ,ψ0 for some U :BI−→ BI. Also, the family of local maps is closed under composition. Definition 2.2.16 (Local Actions) It is possible to define a quantum action R⊆(Σ×Φ)×(Σ× Φ) as an arbitrary union of local maps, with the family of local actions forming a complete lattice equipped with inclusion, in which the join is obtained by the union R ∪R0with the action: >(Σ×Φ)×(Σ×Φ) I:=[{F:Σ×Φ−→ Σ×Φ:F is an I −local map} as the greatest element. Lemma 2.2.2(”Teleportation Property [14]”) For a i -separated state s with is its i -th si qubit in the state x∈B , there is two successive bipartite measurements Gjk? succeeded by Fij? with the k-qubit being given by : (Fij?◦Gjk?(s))k=G(1)◦F(1)(x)
2.2. Dynamic Quantum Logic 26 Lemma 2.2.3(Entanglement Composition Lemma, [14]) As presented as the main lemma in [ 28 ] and with the notation used in [ 14 ]. Given a set of four distinct indices {i,j,k,l} and F,G,H,U,V:B−→ B as single-qubit linear maps, there is: Gjk?◦Vk◦Uj(Fij ∩Hkl)⊆(H◦U†◦G◦V◦F)il Sequentially, as mentioned in [ 14 ], Lemma 2.2.2and Lemma 2.2.3are used in [ 1 , 28 ] (and also used in [ 2 ]), in order to have a main tool to explain a variety of quantum protocols such as teleportation and quantum gate teleportation. On the other hand, even by consider a PhQF, it is possible to say that the order which the operations Uj and Vk are applied is indeed insignificant . Since, this is a consequence of the following properties for local transformations, which are present in [14]: Proposition 2.2.7(Compatibility of local transformations affecting distinct sets of qubits, [14]) For I ∩J=∅, FIas a I-local-map and GJas a J-local map, there is: FI◦GJ=GJ◦FI Example 2.2.9(Proposition 2.2.7and quantum circuits) Suppose the following quantum circuits , Figure 1and Figure 2: FI GJ |q1iH⊗2 |q2i |q3iX Figure 1: Example of a quantum circuit where Proposition 2.2.7holds . FI GJ |q1iH⊗2 |q2iX⊗2 |q3i Figure 2: Example of a quantum circuit where Proposition 2.2.7does not hold .
2.2. Dynamic Quantum Logic 27 Both quantum circuits will have N={1, 2, 3} as the set of all qubits ( q1,q2,q3 ) indices and the correspondent space defined by B=B(1)⊗B(2)⊗B(3). For the quantum circuit of the Figure 1, I={1, 2} and J={3} with I∩J=∅ . Also , BI=B(1)⊗B(2) with FI ”acting” over BI and BJ=B(3) with GJ ”acting” over BJ . Therefore, for the instance of the example , it is possible to consider FI as the action of the Hadamard gate H⊗2 , GJ as the action of the X-gate and notice that Proposition 2.2.7holds. On the other hand, for the quantum circuit of the Figure 2, I={1, 2} and J={2, 3} with I∩J={2} 6=∅ . As well, BI=B(1)⊗B(2) and BJ=B(2)⊗B(3) . Consequently, it is thinkable to see FI as the action of the Hadamard gate H⊗2 , GJ as the action of the X⊗2 -gate and perceive that Proposition 2.2.7does not hold since : |q2iH X 6=|q2iX H . Proposition 2.2.8(Agreement Property, [14]) Let FI,GI:Σ×Φ−→ Σ×Φ be two local I -local maps on states, with same domain ( dom(F) = dom(G) ). Then there is an agreement on their all non I-qubits output-states, i.e.: F(s)N\I=G(s)N\I,∀s∈Σ×Φ when the identity of both sides exists. Example 2.2.10 (An example of a quantum circuit where Proposition 2.2.8is held) Consider the following quantum circuit FIGJ |q1iH⊗2X⊗2 |q2i |q3i Figure 3: Example of a quantum circuit where Proposition 2.2.8holds . For the quantum circuit of the Figure 3, there is N={1, 2, 3} as the set of all qubits ( q1,q2,q3 ) indices and the correspondent space defined by B=B(1)⊗B(2)⊗B(3) . Also, I={1, 2} and N\I={3}. Consequently, BI=B(1)⊗B(2) with FI and GJ ”acting” respectively over BI and BN\I=B(3) with FN\Iand GN\I”acting” respectively over BN\I. Therefore, for the instance of the example , it is also possible to consider FN\I and GN\I ( FN\I,GN\I:
2.2. Dynamic Quantum Logic 34 Input Vector vOutput Vector w φβ00 1 √2(e2πi.φ|00i+e2πi.((φ+1 2k)mod 1)|11i) φβ01 φβ01 φβ10 1 √2(e2πi.φ|00i+e2πi.((φ+1 2k+1 2)mod 1)|11i) φβ11 φβ11 φγ1 2(e2πi.φ|00i+e2πi.((φ+1 2k)mod 1)|11i) + 1 √2 φβ01 Table 17: Table of a non-entangled input-vector vand output-vector wrelation for CRk-gate. . • From the point of view of a PhQF : –v= (σv,φv)and w = (σw,φw)with v,w∈Σ×Φ. –Input-state v and output-state w relation given by the: 1. Table 18 for v =v1⊗v2as a non-entangled state : 2. Table 19 for v as an entangled state, a Bell state : • From the point of view of a QF : –v= (σv,φv)and w = (σw,φw)with v,w∈Σ×Φ. –Input-state v and output-state w relation given by the: 1. Table 20 for v =v1⊗v2as a non-entangled state : 2. Table 21 for v as an entangled state, a Bell state : Example 2.2.17 (CNOT-gate : PhQF vs QF) By consider the CRk -gate, Figure 10, it is possible to build the Table 22 that describes the output vector w for a non-entangled input vector v=v1⊗v2 . v1=e2πi.(φv1)|σv1iw=w1⊗w2=e2πi.(φw1)|σw1i⊗e2πi.(φw2)|σw2i v2=e2πi.(φv2)|σv2i Figure 10:CRk -gate with separable input-vectors v1∈B(1) and v2∈B(2) , as well as an non-entangled output-vector w∈ B =B(1)⊗B(2).
2.2. Dynamic Quantum Logic 35 Input State v1Input State v2Output State w (0, φv1) (σv2,φv2) (0σv2,(φv1+φv2)mod 1) (σv1,φv1) (0, φv2) (σv10, (φv1+φv2)mod 1) (1, φv1) (1, φv2) (11, (φv1+φv2+1 2k)mod 1) (1, φv1) (+,φv2) (10, (φv1+φv2)mod 1)or (11, (φv1+φv2+ 1 2k)mod 1) (1, φv1) (−,φv2) (10, (φv1+φv2)mod 1)or (11, (φv1+φv2+ 1 2k+1 2)mod 1) (1, φv1) (1, φv2) (11, (φv1+φv2+1 2k)mod 1) (+,φv1) (1, φv2) (01, (φv1+φv2)mod 1)or (11, (φv1+φv2+ 1 2k)mod 1) (−,φv1) (1, φv2) (01, (φv1+φv2)mod 1)or (11, (φv1+φv2+ 1 2k+1 2)mod 1) (+,φv1) (+,φv2) (00, (φv1+φv2)mod 1)or (01, (φv1+ φv2)mod 1)or (10, (φv1+φv2) mod 1)or (11, (φv1+φv2+1 2k)mod 1) (+,φv1) (−,φv2) (00, (φv1+φv2)mod 1)or (01, (φv1+ φv2+1 2)mod 1)or (10, (φv1+φv2) mod 1)or (11, (φv1+φv2+1 2k+1 2)mod 1) (−,φv1) (+,φv2) (00, (φv1+φv2)mod 1)or (01, (φv1+ φv2)mod 1)or (10, (φv1+φv2+1 2) mod 1)or (11, (φv1+φv2+1 2k+1 2)mod 1) (−,φv1) (−,φv2) (00, (φv1+φv2)mod 1)or (01, (φv1+ φv2+1 2)mod 1)or (10, (φv1+φv2+1 2) mod 1)or (11, (φv1+φv2+1 2k)mod 1) Table 18: Table of a non-entangled input-states v1,v2 and output-state w relation for CRk -gate by PhQF. . Input State vOutput State w φβ00 (00, φ)or (11, (φ+1 2k)mod 1) φβ01 φβ01 φβ00 (00, φ)or (11, (φ+1 2k)mod 1) φβ11 φβ11 φγ(00, φ)or (11, (φ+1 2k)mod 1)or φβ01 Table 19: Table of a entangled input-statevand output-vector wrelation for CRk-gate by PhQF. . • From the point of view of a PhQF –v=v1⊗v2= (σv,φv)and w = (σw,φw)with v,w∈Σ×Φ. –Input-state v and output-state w relation given by the Table 23: • From the point of view of a QF
2.2. Dynamic Quantum Logic 36 Input State v1Input State v2Output State w 0σv20σv2 σv10σv1 1 1 11 1+1+ 1−1+ +1+1 −1−1 + + ++ +−+− −+−+ − − −− Table 20: Table of a non-entangled input-states v1,v2 and output-state w relation for CRk -gate by QF. . Input State vOutput State w φβ00 φβ00 φβ01 φβ01 φβ00 φβ00 φβ11 φβ11 φγφγ Table 21: Table of a entangled input-state vand output-vector wrelation for CRk-gate by QF. . Input Vector v1Input Vector v2Output Vector w e2πi.(φv1)|0iv2e2πi.((φv1+φv2)mod 1)|0σv2i e2πi.(φv1)|1ie2πi.(φv2)|0ie2πi.((φv1+φv2)mod 1)|11i e2πi.(φv1)|1ie2πi.(φv2)|1ie2πi.((φv1+φv2)mod 1)|10i e2πi.(φv1)|1ie2πi.(φv2)|+ie2πi.((φv1+φv2)mod 1)|1+i e2πi.(φv1)|1ie2πi.(φv2)|−ie2πi.((φv1+φv2)mod 1)|1−i e2πi.(φv1)|+ie2πi.(φv2)|0i((φv1+φv2)mod 1)β00E e2πi.(φv1)|+ie2πi.(φv2)|1i((φv1+φv2)mod 1)β01E e2πi.(φv1)|−ie2πi.(φv2)|0i((φv1+φv2)mod 1)β10E e2πi.(φv1)|−ie2πi.(φv2)|1i((φv1+φv2)mod 1)β11E e2πi.(φv1)|+ie2πi.(φv2)|+i((φv1+φv2)mod 1)γE Table 22: Table of a non-entangled input-vectors v1,v2 and output-vector w relation for CNOT -gate. . –v=v1⊗v2= (σv,φv)and w = (σw,φw)with v,w∈Σ×Φ. –Input-state v and output-state w relation given by the Table 24:
2.2. Dynamic Quantum Logic 37 Input State v1Input State v2Output State w (0, φv1) (σv2,φv2) (0σv2,(φv1+φv2)mod 1) (1, φv1) (0, φv2) (11, (φv1+φv2)mod 1) (1, φv1) (1, φv2) (10, (φv1+φv2)mod 1) (1, φv1) (+,φv2) (1+,(φv1+φv2)mod 1) (1, φv1) (−,φv2) (1−,(φv1+φv2)mod 1) (+,φv1) (0, φv2)((φv1+φv2)mod 1)β00 (+,φv1) (1, φv2)((φv1+φv2)mod 1)β01 (−,φv1) (0, φv2)((φv1+φv2)mod 1)β10 (−,φv1) (1, φv2)((φv1+φv2)mod 1)β11 (+,φv1) (+,φv2)((φv1+φv2)mod 1)γ Table 23: Table of a non-entangled input-states v1,v2 and output-state w relation for CNOT -gate by PhQF. . Input State v1Input State v2Output State w 0σv20σv2 1 0 11 1 1 10 1+1+ 1−1− +00β00 +10β01 −00β00 −10β01 + + 0γ Table 24: Table of a non-entangled input-states v1,v2 and output-state w relation for CNOT -gate by QF. . Moreover, it is noticeable that PhQF’s expressiveness is more ”completed” than the QF’s expressiveness. Finally, attending to the notion of a PhQF, it is possible to construct a logic that captures the concept of quantum phase: PhLQP , which consists of an extension of LQP ([ 14 ]), and consequently an extension of PDL ([36]). 2.2.2Syntax of PhLQP In order to make the language of PhLQP there is a natural number n such that is possible to have a set of indices N={1, 2, . . . , n} , a set Q of propositional variables, a set C of propositional constants, and a set U of program constants. Moreover, this last set U denotes basic programs, which can be seen as quantum gates (i.e. unitary transformations)
2.2. Dynamic Quantum Logic 38 Each program constant U∈ U has an aggregate index I , which consists of a sequence of distinct indices in N ( i.e. I⊆N ), that establish the set of qubits which a quantum gate UI is acting . Therefore, it is possible to write UI for an I -local quantum gate. Concretely, for every i,j≤n, there are some special programs constants: CNOTij,Xi,Yi,Zi,Rki,··· ∈ U. For the set C there are two special propositional constants: (1, φ),(+,φ) . These two constants denote the following states respectively : e2π(φ)i|1i⊗n=e2π(φ)i(|1i⊗|1i···⊗|1i | {z } n times ) e2π(φ)i|+i⊗n=e2π(φ)i(|+i⊗|+i···⊗|+i | {z } n times ) The syntax of PhLQP is an extension of the syntax of LQP, with a set of propositional formulas and a set of programs, defined through mutual induction: ϕ::=>I|p|c| ¬ϕ|ϕ†|ϕ∧ψ|[π]ϕ π::=>I|ϕ?|U|π†|π∪π|π;π Where I denotes sequences of distinct indices in N={1, 2, . . . , n} . The sentence >I stands for I -separation: it is true if and only if the qubits in I form a separated subsystem. Therefore, >I is the notation for the greatest element >Σ×Φ I of the lattice of I -local properties. Remark 2.2.15 The sentence >:=>N expresses the ”always true” proposition (verum), i.e. the ”top” of the lattice of all properties. Furthermore, ¬ϕ and ϕ∧ϕ represent the classical negation and conjunction, sequentially. Elements of the set of propositional formulas are pairs : ϕ:= (ϕΣ,ϕΦ). And have an adjoint defined by : ϕ†:= (φ∗ Σ,φ∗ Φ) = (φΣ,φ∗ Φ). Also, [π]ϕ expresses the weakest precondition that ensures that property ϕ will hold after program πis executed. On the other hand, for programs: >I represents the trivial I-local action >(Σ×Φ)×(Σ×Φ) I , which acts only on a state formed by the I -qubits subsystem and changing it to another randomly selected I -qubits subsystem , while living unchanged the N\I -qubits subsystem. The significance of quantum test ϕ? , adjoint π† , union π∪π and composition π;π is given by the corresponded operations on quantum actions.
2.2. Dynamic Quantum Logic 39 expanding the elementary language of PhLQP It is possible to extend the language of PhLQP through the definitions of operations for a classical disjunction : ϕ∨ψ:=¬(¬ϕ∧¬ψ), and for a classical implication: ϕ→ψ:=¬ϕ∨ψ. Also, the introduction of constants verum >:=>N and falsum ⊥:=¬> . The classical dual of [π]ϕas : hπiϕ:=¬[π]¬ϕ. Consequently, the well known measurement modalities and ♦can be defined by writing : ♦ϕ:=hϕ?i> and ϕ:=¬♦¬ϕ. The orthocomplement is defined as ∼ϕ:=¬ϕ, or equivalently as ∼ϕ:= [ϕ?]⊥. Moreover, through the definition of orthocomplement it is possible to define a binary operation known as quantum join by: ϕtψ:=∼(∼ϕ∧ ∼ ψ). Notice that quantum join expresses superposition of quantum states: ϕtψ is true for whichever state is a superposition of states satisfying ϕ or ψ . Therefore, any logical operator when applied over a element of this set is applied over both components of the (above) pair. Example 2.2.18 (Applying unary operators) For instance of the example, by take into account the following operators: ,♦and ∼: •ϕ= (ϕΣ,ϕΦ) •♦ϕ= (♦ϕΣ,♦ϕΦ) •∼ϕ= (∼ϕΣ,∼ϕΦ) = (∼ϕΣ,ϕΦ) Example 2.2.19 (Applying binary operators) By considering the binary operation of quantum join there is : ϕtψ= (ϕΣtψΣ,ϕΦtψΦ)
2.2. Dynamic Quantum Logic 40 For programs it is possible to introduce some concepts and notations: a program π is deterministic if π is built without the use of non-deterministic choice ∪ or of the nondeterministic program >I. In addition, it is possible to write: SWAPij :=CNOTij ;CNOTji ;CNOTij for the program that swaps the ith and jth Σ -components of any {i,j} -separated input state. At last, for the identity map: id :=>? Remark 2.2.16 Notice that id = (idΣ,idΦ) = (>Σ?, >Φ?) = >? order,equivalence,orthogonality, I -equivalence,testability,locality, separation. There is the possibility of incorporate the relations of logical equivalence, being weaker than,I-equivalence between formulas, the properties of locality and testability, and also the concept of I-component by writing the following formulas: ϕ≤ψ:=(ϕ→ψ) = ((ϕΣ→ψΣ),(ϕΦ→ψΦ)) ϕ=ψ:=(ϕ↔ψ) = ((ϕΣ↔ψΣ),(ϕΦ↔ψΦ)) ϕ⊥ψ:=ϕ≤∼ ψ ϕI:=>I∧h>N\Iiϕ ϕ=Iψ:=ϕ≤ >I∧ψ≤ >I∧ϕ=IψI I(ϕ):=ϕ=ϕI Consequently, notice that the double-box modality agrees with the universal modality : as matter of fact ϕ≤ψ stands for ϕ as logically weaker than ψ , while ϕ=ψ for the equivalence of both formulas. T(ϕ) as ” ϕ is testable” and I(ϕ) as ” ϕ is I -local”. Moreover, it is possible to read ϕI as the ” I -component”, i.e. a state which fulfils this sentence iff (it is I -separated and) its I-subsystem is (a subsystem of some state) satisfies ϕ. Remark 2.2.17 For I ={i}, it is possible to write ϕi:=ϕI. Furthermore, ϕ=Iψ is readable as ” ϕ is I -equivalent to ψ ”, and meaning that both ϕ and ψare I-separated and have the same I-component. Lastly, ϕis I-separated iff ϕ≤ >I. Remark 2.2.18 Every I-component ϕIis I-local.
2.2. Dynamic Quantum Logic 41 Definition 2.2.17 (Special Local States) It is possible to define another propositional constants for special local states by writing: (0, φ)i:=∼(1, φ)iand (−,φ)i:=∼(+,φ)i Definition 2.2.18 (Image and Strongest Post-condition) It is also definable the strongest testable post-condition π[ϕ] ensured by (applying a program ) π on (any state satisfying a given precondition) ϕas: π[ϕ]:=∼[π†]∼ϕ† Therefore, for ϕ testable and π deterministic, the strongest postcondition π[ϕ] agrees with the image π(ϕ) of ϕ via π . The Definition 2.2.18 can be extended to all programs which consist of finite unions of deterministic programs, by writing for all testable formulas θ:π(θ) = π[θ] if πis deterministic, and (π∪π0)(θ) = π(θ)∨π0(θ)in rest. notation For any sequence I⊆N of indices and any vector ~ c= (c(i))i∈I∈{(0, φ),(1, φ), (+,φ),(−,φ)}|I|, there is : ~ cI:=^ i∈I c(i)Σi,(∑ i∈I c(i)φi)mod 1 Example 2.2.20 Let I ={1, 2} ⊆ N={1, 2, 3}and c(i)i∈ {(0, 3 4) |{z} c(1)1 ,(+,1 2) |{z } c(2)2 ,(−,3 4) |{z } c(3)3 }, then : ~ cI=~ c{1,2}=^ i∈{1,2} c(i)Σi,(∑ i∈{1,2} c(i)φi)mod 1 = (01∧+2,(3 4+1 2)mod 1) = (0+,1 4) the unary maps induced by a program. It is captured in the above syntax the construction F(1), where a linear map Fon B⊗nis used to describe a unary map F(1). So , it is possible to write: (0, φ)i! := (0, φ)i?∪((1, φ)i?; Xi), and (0, φ)I! := (0, φ)i1!; (0, φ)i2!; . . . ; (0, φ)ik!, where, I= (i1,i2, . . . , ik) . Notice that this maps any qubit in I to (0, φ) . Also, it is writeable: ((0, φ)I? := (0, φ)i1!; (0, φ)i2!; . . . ; (0, φ)ik)?.
2.2. Dynamic Quantum Logic 42 At last, it is possible to define: π(i):= (0, φ)N\{i}!; π;(0, φ)N\{i}? as the map which encodes a single qubit transformation. Additionally, there is a Bi→Bj -version of π(1): πij :=swap1i;π(1);swap1j local programs. There is the necessity of separate local programs, i.e. the programs that ”act on only the qubits in a given set I⊆N ”. So, it is possible to write a formula I(π) that stands for ”program πis I-local”: I(π):=^ ~ c,~ d,~ d0~ dN\I=N\Iπ(~ cI∧~ dN\I) =Iπ(~ cI∧~ d0N\I) where the conjunction holds for all ~ c∈ {(0, φ),(1, φ),(+,φ),(−,φ)}|I| and all ~ d,~ d0∈ {(0, φ),(1, φ),(+,φ),(−,φ)}n−|I|. entanglement in relation to π . To characterize states that are ”entangled according to π” , there is the following formula: πij :=>ij ∧^ c∈{(0,φ),(1,φ),(+,φ),(−,φ)} ([ci?](πij(ci))j∧(∼ci→πij(ci) = ⊥)∧(c† i→πij(ci) = ⊥)). Consequently, the next formula verifies ci?(πij) =jπij(ci) for every ci∈ {(0, φ)i,(1, φ)i,(+,φ)i,(−,φ)i}. 2.2.3Semantics of PhLQP An PhLQP-model is a multi-partite quantum frame Σ×Φ=Σ×Φ(B) based on an n - dimensional space B and equipped with a valuation function which maps every variable p into a set of states kpk ⊆ Σ×Φ . It will be use the valuation map in order to give an interpretation kϕk ⊆ Σ×Φ for all formulas of PhLQP, i.e. sets of states in Σ×Φ . On the other hand, it is also possible to give an interpretation kπk ⊆ (Σ×Φ)×(Σ×Φ) for all programs. This two interpretations are defined through mutual recursion.
2.2. Dynamic Quantum Logic 43 interpretation of programs. k>Ik:=>(Σ×Φ)×(Σ×Φ) I,kϕ?k:=kϕk? , kUk:=U kπ†k:=kπk†,kπ1∪π2k:=kπ1k ∪ kπ2k,kπ1;π2k:=kπ1k;kπ2k The interpretation kπk allows the possibility of extend the notation π −−→ to all programs , by writing: sπ −−→ tiff (s,t)∈ kπk interpretation of formulas. Furthermore, by extending the valuation kpk from propositional variables to all formulas, by establishing for the others: k(0, φ)k=e2πiφ|0i⊗n,k(1, φ)k=e2πiφ|1i⊗n,k(+,φ)k=e2πiφ|+i⊗n k(−,φ)k=e2πiφ|−i⊗n,kϕk=kϕΣk×kϕΦk,kϕ∧ψk=kϕk∩kψk k¬ϕk=Σ\kϕΣk×Φ,kϕ†k=kϕΣk×kϕ∗ Φk,k[π]ϕk= [kπk]kϕk,k>Ik=>Σ×Φ I Definition 2.2.19 (Inference Relation ) for a state w and a formula ϕ the inference relation is defined through the valuation function by : wϕiff w ∈ ||ϕ|| Proposition 2.2.9([14]) The interpretation of a testable formula is a testable property. The interpretation of every I-local formula is an I-local property. Lemma 2.2.4([14]) k ∼ ϕk=kϕk⊥,k[ϕ?]ψk= [kϕk?]kψk,kϕk=kϕk,kϕk=k ∼∼ ϕk Lemma 2.2.5Also, kϕk=kϕ††k. Proof 2.2.7(Lemma 2.2.5)Consider: • for the term kϕk, kϕk=kϕΣk×kϕΦk =kϕΣk×kϕΦk. • for the term kϕ††k, kϕ††k=kϕΣk×kϕ∗∗ Φk =|ϕΣk×kϕΦk.
2.2. Dynamic Quantum Logic 50 5.Soundness of Proper Superpositions: khπip→[π0]pk=k¬[π]¬p→[π0]pk =k¬(¬[π]¬p∧¬[π0]p)k Consider just the term (¬[π]¬p∧¬[π0]p): • For the term ¬[π]¬p : k¬[π]¬pk=Σ\([kπΣk]Σ\kpΣk)×([kπΦk]kpΦk) = [kπΣk]kpΣk×[kπΦk]kpΦk. • For the term ¬[π0]p : k¬[π0]pk=Σ\[kπ0 ΣkkpΣk]×kπ0 ΦkkpΦk. • For ¬[π]¬p∧¬[π0]p: k¬[π]¬p∧¬[π0]pk=k¬[π]¬pk∩k¬[π0]pk =[kπΣk]kpΣk∩Σ\[kπ0 Σk]kpΣk ×[kπΦk]kpΦk∩[kπ0 Φk]kpΦk =∅. So, khπip→[π0]pk=Σ\∅×Φ =Σ×Φ. 6.Soundness of Σ-Unitary Functionality: k¬[U]q↔[U]¬qk=k(¬[U]q→[U]¬q)∧([U]¬q→ ¬[U]q)k =k(¬[U]q→[U]¬q)k∩k([U]¬q→ ¬[U]q)k =k¬(¬[U]q∧¬[U]¬q)k ∩ k¬([U]¬q∧[U]q)k
2.2. Dynamic Quantum Logic 51 • For the term (¬[U]q∧¬[U]¬q): k(¬[U]q∧¬[U]¬q)k=k¬[U]qk∩k¬[U]¬qk = (Σ\k[UΣ]qΣk×k[UΦ]qΦk)∩(Σ\Σ\k[UΣ]qΣk×k[UΦ]qΦk) = (Σ\k[UΣ]qΣk×k[UΦ]qΦk)∩(|[UΣ]qΣk×k[UΦ]qΦk) =∅. • For the term ([U]¬q∧[U]q): k([U]¬q∧[U]q)k=k[U]¬qk∩k[U]qk = [kUk]k¬qk ∩ [kUk]kqk = ([UΣ]Σ\kqΣk×[UΦ]kqΦk)∩([UΣ]kqΣk×[UΦ]kqΦk) =∅. Therefore, k¬[U]q↔[U]¬qk=k¬(¬[U]q∧¬[U]¬q)k ∩ k¬([U]¬q∧[U]q)k = (Σ\∅×Φ)∩(Σ\∅×Φ) =Σ×Φ. 7.Soundness of Φ-Unitary Functionality: k[U†]q↔[U]q†k=k[U†]q→[U]q†k∩k[U]q†→[U†]qk =k¬([U†]q∧¬[U]q†)k ∩ k¬([U]q†∧¬[U†]q)k • For the term ([U†]q∧¬[U]q†): k[U†]q∧¬[U]q†k=k[U†]qk ∩ k¬[U]q†k = [k[U†]k]kqk ∩ k¬[U]q†k = [kUk†]kqk ∩ (Σ\k[UΣ]qΣkk)×(k[UΦ]q∗ Φk) = ([U† Σ]kqΣk×[U† Φ]kqΦk)∩(Σ\k[UΣ]qΣkk)×(k[UΦ]q∗ Φk) =∅.
2.2. Dynamic Quantum Logic 52 • For the term ([U]q†∧¬[U†]q): k[U]q†∧¬[U†]qk=k[U]q†k ∩ k¬[U†]qk = [kUk]kq†k ∩ Σ\k[U† Σ]qΣk×[kU† Φk]kqΦk = [U]kqk†∩Σ\[U† Σ]kqΣk×[U† Φ]kqΦk = [UΣ]kqΣk×[UΦ]kq∗ Φk ∩ Σ\[U† Σ]kqΣk×[U† Φ]kqΦk =∅. Therefore, k[U†]q∧¬[U]q†k=Σ\∅×Φ∩Σ\∅×Φ =Σ×Φ. 8.Unitary Bijectivity 1: kp↔[U;U†]pk=kp→[U;U†]pk∩k[U;U†]p→pk =k¬(p∧¬[U;U†]p)k ∩ k¬([U;U†]p∧¬p)k • For the term (p∧¬[U;U†]p): kp∧¬[U;U†]pk=kpk ∩ k¬[U;U†]pk =kpk ∩ Σ\k[UΣ;U† Σ]pΣk×k[UΦ;U† Φ]pΦk =kpΣk×kpΦk ∩ Σ\[kUΣk;kU† Σk]kpΣk×[kUΦk;kU† Φk]kpΦk =kpΣk×kpΦk ∩ Σ\[UΣ;U† Σ | {z } =idΣ ]kpΣk×[UΦ;U† Φ | {z } =idΦ ]kpΦk =kpΣk×kpΦk ∩ Σ\kpΣk×kpΦk =∅. • For the term ([U;U†]p∧¬p): k[U;U†]p∧¬pk=k[U,U†]pk ∩ k¬pk = [kU;U†k]kpk ∩ k¬pk = [U;U† |{z} =id ]kpk ∩ k¬pk =kpk ∩k¬pk =∅.
2.2. Dynamic Quantum Logic 53 So, kp↔[U;U†]pk=Σ\∅×Φ∩Σ\∅×Φ =Σ×Φ. 9.Unitary Bijectivity 2: kp↔[U†;U]pk=kp→[U†;U]pk∩k[U†;U]p→pk =k¬(p∧¬[U†;U]p)k ∩ k¬([U†;U]p∧¬p)k • For the term (p∧¬[U†;U]p): kp∧¬[U†;U]pk=kpk ∩ k¬[U†;U]pk =kpk ∩ Σ\k[U† Σ;UΣ]pΣk×k[U† Φ;UΦ]pΦk =kpΣk×kpΦk ∩ Σ\[kU† Σk;kUΣk]kpΣk×[kU† Φk;kUΦk]kpΦk =kpΣk×kpΦk ∩ Σ\[U† Σ;UΣ | {z } =idΣ ]kpΣk×[U† Φ;UΦ | {z } =idΦ ]kpΦk =kpΣk×kpΦk ∩ Σ\kpΣk×kpΦk =∅. • For the term ([U†;U]p∧¬p): k[U†;U]p∧¬pk=k[U†,U]pk ∩ k¬pk = [kU†;Uk]kpk ∩ k¬pk = [U†;U |{z} =id ]kpk ∩ k¬pk =kpk ∩k¬pk =∅. So, kp↔[U†;U]pk=Σ\∅×Φ∩Σ\∅×Φ =Σ×Φ.
2.2. Dynamic Quantum Logic 54 10.Soundness of Adjointness: kp→[π]hπ†i♦pk=k¬(p∧[π]hπ†i♦p)k =k¬(p∧¬[π]¬[π†]¬p)k • For the term [π†]¬p: k[π†]¬pk= [kπk†]k¬pk = [kπk†]k¬pk = ([kπΣk†]Σ\kpΣk)×([kπΦk†]kpΦk). • For the term ¬[π†]¬p: k¬[π†]¬pk=k¬[π†]¬pk =Σ\([kπΣk†]Σ\kpΣk)×([kπΦk†]kpΦk). • For the term [π]¬[π†]¬p: k[π]¬[π†]¬pk= [kπk]k¬[π†]¬pk = ([kπΣk]Σ\([kπΣk†]Σ\kpΣk)) ×([kπΦk†]kpΦk). • For the term ¬[π]¬[π†]¬p: k¬[π]¬[π†]¬pk=Σ\([kπΣk]Σ\([kπΣk†]Σ\kpΣk)) ×([kπΦk†]kpΦk). • For the term (p∧¬[π]¬[π†]¬p): k(p∧¬[π]¬[π†]¬p)k=kpk ∩ k¬[π]¬[π†]¬p)k = (kpΣk×kpΦk)∩(Σ\([kπΣk]Σ\([kπΣk†]Σ\kpΣk)) ×([kπΦk†]kpΦk)) = ∅. Therefore, kp→[π]hπ†i♦pk=k¬(p∧¬[π]¬[π†]¬p)k =Σ\∅×Φ =Σ×Φ.
2.2. Dynamic Quantum Logic 55 Proposition 2.2.14 ([14]) The formula π[ϕ] expresses the strongest testable postcondition assured by performing the program πon any state satisfying ϕ. This is, for every testable ψ: π[ϕ]≤ψiff ϕ≤[π]ψ Proposition 2.2.15 (Adjointness Theorem) For all testable formulas ϕ,ψ, there is: ϕ⊥π[ψ]iff π†[ϕ]⊥ψ† Proof 2.2.10 (Proposition 2.2.15)Consider two testable formulas ϕand ψ, if ϕ⊥π[ψ] holds, then: ϕΣ=∼πΣ[ψΣ]with ϕΦ=πΦ[ψΦ]. On the other hand, if π†[ϕ]⊥ψ† holds, then: πΣ[ϕΣ] =∼ψΣwith π† Φ[ϕΦ] = ψ† Φ, which is equivalent to have ϕΣ=∼πΣ[ψΣ]with ϕΦ=πΦ[ψΦ]. So, ϕ⊥π[ψ]iff π†[ϕ]⊥ψ†. axioms for compound systems For the compound systems: Axioms for the trivial I-local programs. The program >I stands for the weakest I -local program, this is : `I(π)→ hπip≤ h>Iip and `I(>I) Consequently, it is possible to obtain : ∼ >I=⊥
2.2. Dynamic Quantum Logic 56 Example 2.2.21 By considering the identity program id , which is I−local for every program, there is for the application of the above axiom: π= (πΣ,πΦ) = id = (idΣ,idΦ) with: >=hidi> ≤ h>Ii> or (>Σ,>Φ) = h(idΣ,idΦ)i(>Σ,>Φ)≤ h(>IΣ,>IΦ)i(>Σ,>Φ), i.e. >=h>Ii> or (>Σ,>Φ) = h(>Σ,>Φ)i(>Σ,>Φ), and so, ∼ >I= [>I?]⊥=¬h>Ii> =¬> =⊥ or ∼(>IΣ,>IΦ) = [(>IΣ,>IΦ)?](⊥Σ,⊥Φ) = ¬h(>IΣ,>IΦ)i(>Σ,>Φ) = ¬(>Σ,>Φ) = (⊥Σ,⊥Φ). Other consequence consists of the formula TIstanding for the I-local property, i.e. there is : `I(>I) and `I(p)→p≤ >I. In a syntactical way , it is possible to define an ”I-local state” as any sentence ϕsuch that `I(ϕ)∧ϕ6=⊥∧(I(p)∧⊥ 6=p≤ϕ→p=ϕ) for some p not occurring on ϕ . This is, it is verifiable that these are propositions which are atoms of the lattice of (consistent) I-local properties. Local States Axiom. Testable local properties are ”local states”: if I6=Nthen `T(p)∧I(p)∧I(q)∧⊥ 6=q≤p→q=p or `T((pΣ,pΦ)) ∧I((pΣ,pΦ)) ∧I((qΣ,qΦ)) ∧(⊥Σ,⊥Φ)6= (qΣ,qΦ)≤(pΣ,pΦ)→(qΣ,qΦ) = (pΣ,pΦ)
2.2. Dynamic Quantum Logic 57 Basic-State Testability Axiom. Basic local states such as ci,πij are testable: If i,j∈N,c∈ {(0, φ),(1, φ),(+,φ),(−,φ)}and πis a deterministic program, then : `T(ci)∧T(πij)or `T((cΣ,cΦ)i)∧T((πΣ,πΦ)ij) Therefore, attending to the last two above axioms, all constants with a construction as ~ cI ( ~ c∈ {(0, φ),(1, φ),(+,φ),(−,φ)}|I| ) are testable I -local states. On the other hand, if π is deterministic then πij is a testable {i,j}-local state. Furthermore, there is an inference rule which states that the lattice of local properties is atomistic: Local Atomicity Rule. Local properties are unions of testable local properties : if I6=N and p does not occur in ϕ,ψor θ, then : from `ψ∧T(pI)∧pI≤ϕ→pI≤θ from `(ψΣ,ψΦ)∧T((pIΣ,pIΦ)) ∧(pIΣ,pIΦ)≤(ϕΣ,ϕΦ)→(pIΣ,pIΦ)≤(θΣ,θΦ) infer `ψ∧I(ϕ)→ϕ≤θ infer `(ψΣ,ψΦ)∧I((ϕΣ,ϕΦ)) →(ϕΣ,ϕΦ)≤(θΣ,θΦ) Therefore, Corollary 2.2.4.1 For I6=N , every local state is testable. This is : if I6=N and p does not occur in ϕ, then : from `I(ϕ)∧ϕ6=⊥∧(I(p)∧⊥ 6=p≤ϕ→p=ϕ) from `I((ϕΣ,ϕΦ)) ∧(ϕΣ,ϕΦ)6= (⊥Σ,⊥Φ)∧(I((pΣ,pΦ))∧ (⊥Σ,⊥Φ)6= (pΣ,pΦ)≤(ϕΣ,ϕΦ)→(pΣ,pΦ) = (ϕΣ,ϕΦ) it is inferable `T(ϕ) (`T((ϕΣ,ϕΦ))) Separation Axiom ([14]) If a state is either I -separated and J -separated, then it is N\I - separated, I∪J-separation and I∩J-separated as well : ` >I∧ >J→ >N\I∧ >I∪J∧ >I∩J Sequentially, the below axioms express the fact that (+,φ)i and (−,φ)i are proper axioms of (0, φ)iand (1, φ)i: Proper Superposition Axioms: `(+,φ)i→♦(0, φ)i∧♦(1, φ)i
2.2. Dynamic Quantum Logic 58 and `(−,φ)i→♦(0, φ)i∧♦(1, (φ+1 2)mod 1)i. The succeeding axiom expresses the property of linear operators on B being entirely determined by their values on all the states |xi1⊗. . . |xin, with |xii∈ {e2πiφxi|0ii,e2πiφxi|1ii,e2πiφxi|+ii,e2πiφxi|−ii}: Determinacy Axiom of Deterministic Programs. For deterministic programs π,π0: `^ ~ c∈{(0,φ),(1,φ),(+,φ),(−,φ)}nπ(~ cN) = π0(~ cN)→π(p) = π0(p) The next axiom is a semantic equivalent of Proposition 2.2.6: Entanglement Axiom. If πis deterministic and i6=j, then : `T(pi)→pi?(πij) =jπij(pi) `T(pΣ,pΦ)i→piΣ?(πijΣ),piΦ?(πijΦ)=jπijΣ(piΣ),πijΦ(piΦ) Consequently, attending to the earlier axioms it is possible to define a proof-theoretic concept of locality , as already done for testability . So, a formula ϕ is I -local if `I(ϕ) is a theorem; likewise, a program πis I-local if `I(π)is a theorem. Proposition 2.2.16 ([14]) Some formula of the form ϕI is always I -local. Some formula of the form πij is {i,j} -local. For ϕ and ψ as I -local formulas and π as an I-local program, ϕ∨ψ , ϕ∧¬ψ and ϕ∧[π]ϕare I-local. For ϕI-local and ϕJ-local, ϕ∧ψis I ∪J-local. Proposition 2.2.17 ([14]) For ϕ as a testable I -local formula, ϕ? is an I -local program. >I is I -local. For πand π0as I-local, then π∪π0,π;π0are I-local. Proposition 2.2.18 ([14]) Local programs act locally. This is: `I(π)∧p=Iq→p=N\Iπ(p) =Iπ(q) `I((πΣ,πΦ)) ∧(pΣ,pΦ) =I(qΣ,qΦ)→(pΣ,pΦ) =N\I(πΣ,πΦ)((pΣ,pΦ)) =I(πΣ,πΦ)((qΣ,qΦ)) Proposition 2.2.19 ([14]) Systems composed of equal parts are equal: `p=Iq∧p=Jq→p=I∪Jq `(pΣ,pΦ) =I(qΣ,qΦ)∧(pΣ,pΦ) =J(pΣ,pΦ)→(pΣ,pΦ) =I∪J(qΣ,qΦ)
2.2. Dynamic Quantum Logic 59 Proposition 2.2.20 ([14]) `pI⊥q↔pI⊥qI `(pIΣ,pIΦ)⊥(qΣ,qΦ)↔(pIΣ,pIΦ)⊥(qIΣ,qIΦ) Proposition 2.2.21 (Dual Local Atomicity Rule,[14]) If I6=N , ϕ and θ are I -separated, as well as p does not take place in ϕ,ψor θ, then: from `ψ∧T(pI)∧pI⊥ϕ→pI⊥θ from `(ψΣ,ψΦ)∧T((pIΣ,pIΦ)) ∧(pIΣ,pIΦ)⊥(ϕΣ,ϕΦ)→(pIΣ,pIΦ)⊥(θΣ,θΦ) infer `ψ∧T(ϕI)∧T(θI)→ϕ=Iθ infer `(ψΣ,ψΦ)∧T((ϕIΣ,ϕIΦ)) ∧T((θIΣ,θIΦ)) →(ϕIΣ,ϕIΦ) =I(θIΣ,θIΦ) Proof 2.2.11 (Proposition 2.2.21) By take into consideration the Proposition 2.2.20 it is possible to rewrite : `ψ∧T(pI)∧pI⊥ϕI→pI⊥θI `(ψΣ,ψΦ)∧T((pIΣ,pIΦ)) ∧(pIΣ,pIΦ)⊥(ϕIΣ,ϕIΦ)→(pIΣ,pIΦ)⊥(θIΣ,θIΦ) Also through the I-locality of pI: `ψ∧T(pI)∧pI≤(>I∧ ∼ ϕI)→pI≤(>I∧ ∼ θI) `(ψΣ,ψΦ)∧T((pIΣ,pIΦ)) ∧(pIΣ,pIΦ)≤(>I∧(∼ϕIΣ,ϕIΦ)) →(pIΣ,pIΦ)≤(>I∧(∼θIΣ,θIΦ)) Consider now ψ∧T(ϕI)∧T(θI). Then >I∧ ∼ ϕI=>I∧ ¬(>I∧[ϕI?]⊥) >I∧(∼ϕIΣ,ϕIΦ) = >I∧ ¬(>I∧[(ϕIΣ,ϕIΦ)?]⊥). and >I∧ ∼ θI=>I∧ ¬(>I∧[θI?]⊥) >I∧(∼θIΣ,θIΦ) = >I∧ ¬(>I∧[(θIΣ,θIΦ)?]⊥) are I -local formulas, in consideration of ϕI and θI as testable I -local with ϕI? and θI? as I -local programs . By applying the Local Atomicity Rule : (>I∧ ∼ ϕI)≤(>I∧ ∼ θI) >I∧(∼ϕIΣ,ϕIΦ)≤>I∧(∼θIΣ,θIΦ).
2.3. Worked Examples 66 Corollary 2.2.7.1([14]) For i,j,k as distinct indices , there is : `CNOTij;Hi((x,φi)i∧(y,φj)j))?(p) =kφij βi,j xy(p) 2.3 worked examples 2.3.1Quantum Teleportation Protocol Attending to [ 14 , 42 , 51 ], quantum teleportation is a technique built on the principle of teleporting the information and not the medium, i.e., the possibility of teleporting a state of a quantum system, without any quantum channel, but with a classical channel for classical communication. The workspace is B⊗B⊗B with B standing for the bidimensional qubit space , and so n=3 . Subsequently, admit two agents Alice and Bob separated in space with each one having one qubit of an entangled EPR pair denoted by φjk βj,k 00 ∈B(j)⊗B(k) . Also, Alice detains an extra qubit qi∈B(i) beyond her part of the EPR pair , in a unknown local state qi. As depicted in Figure 11 by the QCM . Alice |qiiiH Alice qjj=e2πi.φj|0ijH Bob |qkik=e2πi.φk|0ikU1U2|qiik Figure 11: Quantum Teleportation implementation by QCM . Remark 2.3.1q1is a testable i-local property, by reason of q1being a i-local state . Alice has the intention of “teleport” the state qi to Bob, i.e. she will execute a program that will output a state satisfying idi,k(qi) . For so , Alice firstly entangles qi with her component qj of the EPR pair (i.e. she applies CNOTi,j gate on qubits qi and qj and then a Hadamard Hi on the qi qubit component). On the other hand, Bob’s qubit has its state “shaped” throughout the actions of Alice and when Alice does a measurement over her qubits , she will untangle the EPR pair that she shares with Bob . The initial state of Bob’s qubit is previously known, and it is possible to determine which modifications occurred, upon the measurement results of Alice of her qubits qi and qj . Furthermore, the results of Alice’s measurements establish the actions that Bob needs to execute to transfer his qubit qk into the state idi,k(qi) , which is the state corresponding to the Alice’s qubit qi state previous protocol . Therefore, it is sufficient for Alice send Bob two classical bits encoding the result xi of the first measurement and the result yj of the second measurement . In other words, Bob will need to apply y
2.3. Worked Examples 67 times the U1 -gate followed by x times the U2 -gate, in order to obligate his qubit qk into the state idi,k(qi). By the PhLQP syntax, the quantum program can be expressed by : π=[ x,y∈ {0,1} φy,φx∈Φ CNOTij;Hi;((x,φi)i∧(y,φj)j)?; U(y,φj) 1k;U(x,φi) 2k Now, consider that U1stands for a X gate and U2for a Z-gate , then : π=[ x,y∈ {0,1} φy,φx∈Φ CNOTij;Hi;((x,φi)i∧(y,φj)j)?; X(y,φj) k;Z(x,φi) k with the following validity expressing the correctness of the protocol : `π(qi∧φjk βj,k 00) =kidi,k(qi) To demonstrate this, notice that by applying the Corollary 2.2.7.1the validity becomes equivalent to : `(φi,jβi,j xy?; X(y,φj) k;Z(x,φi) k)(qi∧φjk βj,k 00) =kidi,k(qi). By replacing the logical Bell formulas with the respective definitions φij βi,j xy := (Z(x,φi) i;X(y,φj) i)ij , there is the following equivalent validity : `(Z(x,φi) i;X(y,φj) i)ij?; X(y,φj) k;Z(x,φi) k(qi∧idj,k) =kidi,k(qi), where idi=X(0,φj) i;Z(0,φi) i is the identity . Finally , the above validity follows from the application of Corollary 2.2.6.1and the validity Z(x,φi) i;X(y,φj) i;X(y,φj) i;Z(x,φi) i=idi , since X(y,φj) i=X(−y,φj) iand Z(x,φi) i=Z(−x,φi) i. 2.3.2Quantum Leader Election Protocol The QLE protocol objectives to indiscriminately select a leader in a group of agents in such way that each agent has equal probability of be the selected leader. To such protocol there is numerous ways to solve this problem by recourse to quantum theory ,e.g., [ 31 , 32 , 47 ]. It will be chosen the proposed way by D’Hondt and Panangaden [ 31 , 32 ] as the way to implement and verify such protocol, since it doesn’t rely in a heavily basis on communication by omitting explicit communication , and avoiding the necessity of explicit a model of communication. So for a group of n agents , the inherent task to the QLE protocol entails the attribution to each agent the two states {|0i,|1i} with |1i standing for the state “leader” and |0i standing
2.3. Worked Examples 68 for the state “follower” in such way that only and only one agent is assigned state “leader” and all others “follower”. A protocol for such task is correct if and only if it at all times ends in states where each agent has the same probability of getting assigned to be the “leader”. In [ 31 ] , D’Hondt and Panangaden provide a correct protocol for the task with quantum resources , as also showed that the required and enough condition for such protocol to be possible is to acquire the “” W-state” , i.e., by following [11] : 1 √n∑ j∈NO i∈N|δ(i,j)iiwhere δ(i,j) = (1 if i=j 0 , otherwise . So the QLE protocol can be implanted by preparing n qubits i∈N={0, . . . , n−1} in the W -state , and give each agent one qubit . The agents measure their qubits in an individual way. The only one whose qubit collapses to |1i is appoint the state “leader” , and all the others , whose qubits collapse to |0i , are declare “follower”. However, a Language of Phased Logic of Quantum Programs ( LPhLQP )can only express the total correctness of the QLE protocol when the probabilities involved are equal to 1 n , since PhLQP is not equipped with probabilistic predication formulas. Let Wn denote the W -state for n qubits , it is possible express the full correctness of W2 -state , a 2-party QLE protocol as depicted in Figure 12 , and the the full correctness of W4-state ´ , a 4-party QLE illustrated in Figure 13 . |qiii=|0iiH 0βi,j 01 =W2 qjj=|0ijX Figure 12:2-party QLE implementation by QCM . Attending to the PhLQP syntax , the 2-party QLE can be expressed as the program : πQLE2=[CNOTij;Hi;Xj;(qii∧qjj)? with the following validity asserting the correctness of the 2-party QLE protocol : `πQLE2((0, 0)i∧(0, 0)j) = 0βi,j 01? , or in an equivalent way : `(CNOTij;Hi;Xj)((0, 0)i∧(0, 0)j)?=0βi,j 01? .
2.3. Worked Examples 69 To show this, notice that from the characteristic axioms of the X -gate the above validity is proven to be equivalent to : `(CNOTij;Hi)((0, 0)i∧(1, 0)j)?=0βi,j 01? . And by applying Proposition 2.2.26 , there is the last validity : `0βi,j 01?=0βi,j 01? . |qiii=|0iiH 0β00 W4 qjj=|0ij |qkik=|0ikH 0β01 |qlil=|0ilX Figure 13:4-party QLE implementation by QCM . Following PhLQP syntax, it is also possible to write the 4-party-QLE as the following program : πQLE4=[π00 QLE4;π0 QLE4;(qii∧qjj∧qkk∧qll)? , with π0 QLE4=[CNOTkl;CNOTij;Xl;Hk;Hi(p) and π00 QLE4=[CNOTil;CNOTjk;CNOTji;TOFFjil(p). Also with the following validity expressing the correctness of the 4-party-QLE protocol : `π0 QLE4((0, 0)i∧(0, 0)j∧(0, 0)k∧(0, 0)l) = 0βi,j 00 ∧0βk,l 01 | {z } 1stcondition ∧π00 QLE4;π00 QLE4(p) = id(p) | {z } 2ndcondition . Equivalently , for the 1st condition of the validity there is : (CNOTkl;CNOTij;Xl;Hk;Hi)((0, 0)i∧(0, 0)j∧(0, 0)k∧(0, 0)l). By consider the X -gate characteristic axiom, the above condition of the validity becomes : (CNOTkl;CNOTij;Hk;Hi)((0, 0)i∧(0, 0)j∧(0, 0)k∧(1, 0)l).
2.3. Worked Examples 70 Consequently, by applying Proposition 2.2.26 with {i,j}-locality and {k,l}-locality : 0βi,j 00 ∧0βk,l 01 . Also , for the 2nd condition of the validity , there is the following equivalence : (CNOTil;CNOTjk;CNOTji;TOFFjil);(CNOTil;CNOTjk;CNOTji;TOFFjil)(id). So, attending to the inherent property of quantum gates as unitary transformations, there is : (CNOT−1 il ;CNOT−1 jk ;CNOT−1 ji ;TOFF−1 jil );(CNOTil;CNOTjk;CNOTji;TOFFjil)(p) =CNOT−1 il ;CNOTil;CNOT−1 jk ;CNOTjk;CNOT−1 ji ;CNOTji;TOFF−1 jil ;TOFFjil(id) With the 2nd condition of the validity becoming : idil;idjk;idji;idjil(p) = id(p). 2.3.3Quantum Fourier Transform By following [ 51 ], the QFT, the quantum analogue of the classical Discrete Fourier Transform (DFT), can be approached as a quantum gate, and also with a unitary matrix representation. Therefore, it is possible to define the QFT operator as : Definition 2.3.1( QFT operator ) For a n-qubits register where |qin=|qn−1. . . q1q0i, there is QFT |qin=1 √N N−1 ∑ k=0 e2πi.(qk N)|kinwhere N =2n(1) with QFT†QFT =QFT QFT†=id. a single-qubit QFT operator By using equation (1) , it is possible to write : QFT |0i=1 √2 1 ∑ k=0 e2πi.(0 2(k)) |ki=1 √2(|0i+|1i) QFT |1i=1 √2 1 ∑ k=0 e2πi.(1 2(k)) |ki=1 √2(|0i−|1i) Remark 2.3.2 It is noticeable that a single-qubit QFT operator is indistinguishable from a Hadamard gate .
2.3. Worked Examples 71 Proposition 2.3.1(Single-qubit QFT operator characteristic axiom ) For 1QFT denoting a single-qubit of index i QFT operator , there is : `1QFTi(c) = Hi(c). . a two-qubit QFT operator . By the QCM it possible to implement the two-qubit QFT operator as depicted in Figure 14 . And by the equation ( 1) there is : QFT |0i2=1 √4 3 ∑ k=0 e2πi.(0 4(k)) |ki=1 2(|0i2+|1i2+|2i2+|3i2) = 1 2(|0i+|1i)⊗(|0i+|1i) QFT |1i2=1 √4 3 ∑ k=0 e2πi.(1 4(k)) |ki=1 2(|0i2+i|1i2−|2i2−i|3i2) = 1 2(|0i−|1i)⊗(|0i+i|1i) QFT |2i2=1 √4 3 ∑ k=0 e2πi.(2 4(k)) |ki=1 2(|0i2−|1i2+|2i2−|3i2) = 1 2(|0i+|1i)⊗(|0i−|1i) QFT |3i2=1 √4 3 ∑ k=0 e2πi.(3 4(k)) |ki=1 2(|0i2−|1i2+|2i2−|3i2) = 1 2(|0i−|1i)⊗(|0i−i|1i) |q1ijHR2 |q0iiH Figure 14: A two-qubit QFT gate implementation by QCM . . By consider the syntax PhLQP, the quantum program (of Figure 14) can be described as : 2QFTij =[ q0,q1∈{(0,φ),(1,φ),(+,φ),(−,φ)} SWAPij;Hi;CR2ij ;Hj;(q0i∧q1i) With the following validity asserting the correctness of the two-qubit QFT operator : `2QFT† ij;2QFTij(p) = id(p) | {z } 1stcondition ∧SWAPij(p);2QFTij =i1QFTi(p) | {z } 2ndcondition
2.3. Worked Examples 72 For the 1st condition of the validity , there is the following equivalence : SWAPij;Hi;CR2ij ;Hj†;SWAPij;Hi;CR2ij ;Hj(p) =Hj;CR2ij ;Hi;SWAPij;SWAPij;Hi;CR2ij ;Hj(p) =H−1 j;CR−1 2ij ;H−1 i;SWAP−1 ij ;SWAPij;Hi;CR2ij ;Hj(p) =H−1 j;CR−1 2ij ;H−1 i;idij;Hi;CR2ij ;Hj(p) =H−1 j;CR−1 2ij ;idi;idij;CR2ij ;Hj(p) =idj;idij;idi;idij(p) = id(p) Also, for the 2nd condition of the validity, there is the subsequent equivalence : SWAPij;SWAPij;Hi;CR2ij ;Hj(p). which follows : SWAP−1 ij ;SWAPij;Hi;CR2ij ;Hj(p) = idij;Hi;CR2ij ;Hj(p) = Hi;CR2ij ;Hj(p) with Hi;CR2ij ;Hj(p) =iHi(p). And from Proposition 2.3.1there is : Hi;CR2ij ;Hj(p) =iHi(p) =i1QFTi(p). Proposition 2.3.2(Two-qubit QFT operator characteristic axiom ) For 2QFT denoting a {i,j} - local QFT operator , there is : `2QFTij(c) =ij SWAPij;Hi;CR2ij ;Hj(c). a three -qubit qft operator . By the QCM it possible to implement the threequbit QFT operator shown in Figure 15 . And by the equation ( 1) there is : QFT |0i3=1 √8 7 ∑ k=0 e2πi.(0 8(k)) |ki=1 √8(|0i3+|1i3+|2i3+|3i3+|4i3+|5i3+|6i3+|7i3) =1 2√2(|0i+|1i)⊗(|0i+|1i)⊗(|0i+|1i).
2.3. Worked Examples 73 QFT |1i3=1 √8 7 ∑ k=0 e2πi.(1 8(k)) |ki=1 √8(|0i3+√2 2(1+i)|1i3+i|2i3+√2 2(i−1)|3i3 −|4i3−√2 2(1+i)|5i3−i|6i3−√2 2(i−1)|7i3) =1 2√2(|0i+√2 2(i+1)|1i)⊗(|0i+i|1i)⊗(|0i−|1i). QFT |2i3=1 √8 7 ∑ k=0 e2πi.(2 8(k)) |ki=1 √8(|0i3+i|1i3−|2i3−i|3i3−|4i3+i|5i3−|6i3−i|7i3) =1 2√2(|0i+i|1i)⊗(|0i−|1i)⊗(|0i+|1i). QFT |3i3=1 √8 7 ∑ k=0 e2πi.(3 8(k)) |ki=1 √8(|0i3+√2 2(i−1)|1i3−i|2i3+√2 2(i+1)|3i3 −|4i3−√2 2(i−1)|5i3+i|6i3−√2 2(i+1)|7i3) =1 2√2(|0i+√2 2(i−1)|1i)⊗(|0i−i|1i)⊗(|0i−|1i). QFT |4i3=1 √8 7 ∑ k=0 e2πi.(4 8(k)) |ki=1 √8(|0i3−|1i3+|2i3−|3i3+|4i3−|5i3+|6i3−|7i3) =1 2√2(|0i−|1i)⊗(|0i+|1i)⊗(|0i+|1i). QFT |5i3=1 √8 7 ∑ k=0 e2πi.(5 8(k)) |ki=1 √8(|0i3−√2 2(i+1)|1i3+i|2i3+√2 2(1−i)|3i3 −|4i3+√2 2(i+1)|5i3−i|6i3−√2 2(1−i)|7i3) =1 2√2(|0i−√2 2(i+1)|1i)⊗(|0i+i|1i)⊗(|0i−|1i).
2.3. Worked Examples 74 QFT |6i3=1 √8 7 ∑ k=0 e2πi.(6 8(k)) |ki=1 √8(|0i3−i|1i3−|2i3+i|3i3+|4i3−i|5i3−|6i3+i|7i3) =1 2√2(|0i−i|1i)⊗(|0i−|1i)⊗(|0i+|1i). QFT |7i3=1 √8 7 ∑ k=0 e2πi.(7 8(k)) |ki=1 √8(|0i3+√2 2(i−1)|1i3−i|2i3−√2 2(1+i)|3i3 −|4i3−√2 2(i−1)|5i3+i|6i3+√2 2(1+i)|7i3) =1 2√2(|0i+√2 2(1−i)|1i)⊗(|0i−i|1i)⊗(|0i−|1i). |q2ikHR3R2 |q1ijHR2 |q0iiH Figure 15: A three-qubit QFT gate implementation by QCM . By consider the syntax PhLQP, the quantum program (of Figure 15) can be expressed as : 3QFTijk =[ q0,q1,q2∈{(0,φ),(1,φ),(+,φ),(−,φ)} SWAPik;Hi;CR2ij ;Hj;CR2jk ;CR3jk ;Hk;(q0i∧q1j∧q2k) With the following validity expressing the correctness of the two-qubit QFT operator : `3QFT† ijk;3QFTijk(p) = id(p) | {z } 1stcondition ∧CR3jk ;CR2jk ;SWAPik;3QFTijk(p) =ij SWAPij;2QFTij(p) | {z } 2ndcondition ∧SWAPik;3QFTijk(p) =k1QFTi(p) | {z } 3rdcondition .
2.3. Worked Examples 75 For the 1st condition of the validity , there is the following equivalence : SWAPik;Hi;CR2ij ;Hj;CR2jk ;CR3jk ;Hk†;SWAPik;Hi;CR2ij ;Hj;CR2jk ;CR3jk ;Hk(p) =Hk;CR3jk ;CR2jk ;Hj;CR2ij ;Hi;SWAPik;SWAPik;Hi;CR2ij ;Hj;CR2jk ;CR3jk ;Hk(p) =H−1 k;CR−1 3jk ;CR−1 2jk ;H−1 j;CR−1 2ij ;H−1 i;SWAP−1 ik ;SWAPik;Hi;CR2ij ;Hj;CR2jk ;CR3jk ;Hk(p) =H−1 k;CR−1 3jk ;CR−1 2jk ;H−1 j;CR−1 2ij ;H−1 i;idik;Hi;CR2ij ;Hj;CR2jk ;CR3jk ;Hk(p) =H−1 k;CR−1 3jk ;CR−1 2jk ;H−1 j;CR−1 2ij ;idi;idik;CR2ij ;Hj;CR2jk ;CR3jk ;Hk(p) =H−1 k;CR−1 3jk ;CR−1 2jk ;H−1 j;idij;idi;idikHj;CR2jk ;CR3jk ;Hk(p) =H−1 k;CR−1 3jk ;CR−1 2jk ;idj;idij;idi;idik;CR2jk ;CR3jk ;Hk(p) =H−1 k;idjk;idjk;idj;idij;idi;idik;Hk(p) =idk;idjk;idjk;idj;idij;idi;idik(p) = id(p). Sequentially, for the 2nd condition of the validity, there is the below equivalence : CR3jk ;CR2jk ;SWAPik;SWAPik;Hi;CR2ij ;Hj;CR2jk ;CR3jk ;Hk(p), which follows : CR−1 3jk ;CR−1 2jk ;SWAP−1 ik ;SWAPik;Hi;CR2ij ;Hj;CR2jk ;CR3jk ;Hk(p) =CR−1 3jk ;CR−1 2jk ;idik;Hi;CR2ij ;Hj;CR2jk ;CR3jk ;Hk(p) =Hi;CR2ij ;Hj;CR−1 3jk ;CR−1 2jk ;CR2jk ;CR3jk ;Hk(p) =Hi;CR2ij ;Hj;idjk;idjk;Hk(p) = Hi;CR2ij ;Hj;Hk(p). By consider {i,j}-locality, it follows: Hi;CR2ij ;Hj;Hk(p) =ij Hi;CR2ij ;Hj(p). Consequently, Hi;CR2ij ;Hj(p) =ij idij;Hi;CR2ij ;Hj(p) =ij SWAP−1 ij ;SWAPij;Hi;CR2ij ;Hj(p). And by the Proposition 2.3.2the above expression is equivalent to : SWAPij;SWAPij;Hi;CR2ij ;Hj(p) =ij SWAPij;2QFTij(p).
3.2. Paraconsistent Logics 82 3.2 paraconsistent logics Traditional logics, as CL, admit the principle of explosion, ”ex contracdictione sequitur quodlibet” (ECSQ), i.e. “If one states something is both true and not true, one can logically draw any conclusion ”, [8,45] : ψ,¬ψ`ϕ. (2) In opposition to traditional logics, paraconsistent logics reject (2). However, this rejection in paraconsistent logics, which have a disjunction ∨ in its languages, implies the need of reject also at least one of the two subsequent principles: •The introduction of disjunction: from ψinfer ψ∨ϕ. •The disjunctive syllogism: from ¬ψand ψ∨ϕinfer ϕ. The introduction of disjunction stands for a rule of inference of propositional logic that allows to introduce disjunctions to logical proofs. This is: if ψ is true, then ψ∨ϕ should be also true. The disjunctive syllogism is a rule of inference of propositional logic that allows to eliminate disjunctions in logical proofs. In other words, if is told that ψ is true, then ¬ψ∨ϕ is true by ϕ. 3.2.1Negation and Paraconsistency In (2), it is obvious that the idea of paraconsistency hinge on a associated notion of negation , i.e. a notion of the connective ¬ . Also, from now on, consider for the definitions in the sequel: a logic L=hL,`Li, where `Lstands for a tcr and Lfor a propositional language. Definition 3.2.1(Explosive negation [8]) Let L be a language with a unary connective ¬ . ¬ is explosive if ¬ϕ,ϕ`Lψfor every ϕand ψ. Now, it will be define the notion of paraconsistency in precise terms. Definition 3.2.2((strong) pre-¬-paraconsistency [8]) Let L be a language with a unary connective ¬. •Lis pre-¬-paraconsistent if ¬is not explosive in it . •Lis said to be strongly pre-¬-paraconsistent if there are variables p,q such that p,¬p6`L¬q. Definition 3.2.3((strong) ¬-paraconsistency [8]) Let L be a language with a unary connective ¬ . L is (strongly) ¬ -paraconsistent if it is (strongly) pre- ¬ -paraconsistent, with ¬ is as a negation of L.
3.2. Paraconsistent Logics 83 Definition 3.2.4(Non-explosive logic [8]) L is non explosive if T 6`Lq for every theory T such that Var(T)6=Var and every variable q such that q6∈ Var(T) . L is strongly non exploding if T 6`Lψfor every ψsuch that Var(T)∩Var(T) = ∅and 6`Lψ. Remark 3.2.1Classical logic is ¬-explosive. Definition 3.2.5(classical ¬-paraconsistent logic [8]) Let LCL ⊆ L . L stands for a classical ¬ -paraconsistent logic if it is an axiomatic extension of CL+ which is pre- ¬ -paraconsistent and ¬-contained in CL. 3.2.2Logics of Formal Inconsistency Newton da Costa is the founder of one of the oldest and presently most well-known lines of study of paraconsistency: the “Brazilian school”. This line’s approach has begun with the hierarchy of paraconsistent calculi {Cn|0<n<ω} developed by him in the 1960’s [ 29 , 33 ], holding the theoretical concepts that led to the development of a considerable family of paraconsistent logics called LFIs (cf. [21,22,23] and [8, Chapter 8]) . The central idea behind this line of study is that propositions can be classified into two kinds : the normal ones (or consistent ones) and abnormal ones (or inconsistent ones). Where contradictions are allowed for the inconsistent propositions. LFIs are characterized as logics that are provided of resources to express this meta-theoretical concept of consistency of formulas within the object language. As a result, a Logic of Formal Inconsistency (LFI) is capable of distinguish between propositions for which the explosion (the consistent/normal ones), and those for which does not hold (the inconsistent/abnormal ones). a c-system as a unique type of LFI A C-system is a unique type of LFI which utilizes a unary connective ◦ in order to express the (in)consistency of its formulas. Therefore, in da Costa’s most basic system the consistency 1 of a sentence ψ is expressed as ¬(ψ∧¬ψ) . Definition 3.2.6(LFI [8]) Let L be a language with negation ¬ . L is a LFI with reverence to ¬ if there occurs a non-empty set (p)of formulas in Lwith the following properties : •Lis ¬-paraconsistent . • There exists some formulas ψ0,ϕ0such that : –(ψ0),ψ06`Lϕ0, –(ψ0),¬ψ06`Lϕ0. •(ψ),ψ,¬ψ`Lϕfor every ψand ϕ. 1or normality in [8, Chapter 8]
3.2. Paraconsistent Logics 84 where (ψ) = {ϕ[ψ/p]|ϕ∈ (p)}. A C-system can be characterized with respect to some base logic , which such a C-system extends, such as the positive fragment of a CL , CL+ . Where CL =hLCL,`CLi stands for an arbitrary classical logic with LCL as its language and `CL as its tcr. Definition 3.2.7(Consistency operator [8]) Let LCL ⊆ L , CL+⊆L , and ◦ be a unary connective of L. It is possible to say , in L, that ◦is a consistency operator for ¬if : •[n0]`L(◦ψ∧¬ψ∧ψ)→ϕfor every ψ,ϕ∈ W(L). •[n1]6`L(◦p∧ ¬p)→q whenever p and q are distinct propositional variables . •[n2]6`L(◦p∧p)→q whenever p and q are distinct propositional variables . Definition 3.2.8(C-system [8]) Let L be a like in Definition 3.2.7, as well as ◦ be a unary connective of L. •L is a ◦ -C-system if it is classical ¬ -paraconsistent logic in which ◦ is a consistency operator for ¬. If ◦is a primitive of connective L, then Lis a strict ◦-C-system for ¬. •Lis a (strict) C-system if it is a (strict) ◦-C-system for some ◦. Notice that due to the condition [n0] , the conditions [n1],[n2] can be reformulated as [n0 1],[n0 2] along with a condition of pre-paraconsistency [n0 3]: [n0 1]6`L(◦p∧¬p)→p. [n0 2]6`L(◦p∧¬p)→ ¬p. [n0 3]6`L(◦p∧¬p)→ ◦p. By combining conditions [n0 1],[n0 2],[n0 3] and [n0] it is possible to say that every formula follows from the set {p,¬p,◦p} , although no element from this set follows from the other two. Therefore, the set which contains these four conditions is entirely symmetric with concern to ¬ and ◦ . In specific, the LCL - fragment of L is contained in CL . Moreover , it is possible to expand this condition to {∧,∨,→,¬,◦} in such manner that the symmetry between ¬ and ◦ is broken , and the intuition that classical logic is established over the idea that all formulas are consistent is reinforced: Definition 3.2.9. Definition 3.2.9(Regular C-system [8]) Let Land ◦be defined by Definition 3.2.7. •◦ is a regular consistency operator (for ¬ ) if it satisfies condition [n0] from Definition 3.2.7, along with the subsequent condition : –[c0]L is F -contained in CL (Definition 3.1.6) for some bivalent ¬ -interpretation F such that F(◦) = λx.t (i.e., (F(◦))(t) = (F(◦))(f) = t).
3.2. Paraconsistent Logics 85 •L is a regular ◦ -C-system if it is a pre- ¬ -paraconsistent axiomatic extension of CL+ in which ◦is a regular consistency operator, and ¬is complete. •Lis a regular C-system if it is regular ◦-C-system for some ◦. Where the t and f stands for the two truth values: t for truth and f for falsity. The following theorem (Theorem 3.2.1) gives the most essential property of regular consistency operators. It shows the straightforward perception that classical logic presumes that all formulas are consistent. Additionally, it shows that in the presence of a regular consistency operator, any classical proof can be replicated in any regular C-system by adding the assumptions concerning consistency of formulas. Theorem 3.2.1(Consistent formulas [8]) Let L and ◦ be like in Definition 3.2.7. Consider that ◦ is a regular consistency operator for ¬ . Let T ∪ {ψ} be a set of formulas in LCL . Then L `CL ψ iff there exists a finite set ∆ of subformulas of T ∪{ψ} such that ◦∆∪T `Lψ (where ◦∆={◦ψ|ψ∈∆}). Corollary 3.2.1.1([8]) Let Land ◦be as in Definition 3.2.7. 1. If ◦is a regular consistency operator then it is a consistency operator. 2. If Lis a regular (◦-)C-system then it is a (◦-)C-system. a stronger definition of consistency operator As reasoned in [ 9 ] and discussed in [ 8 , Chapter 8] , there is an alternative more stronger condition (which is organic) to impose on ◦and ¬. Definition 3.2.10 (Strong consistency operator [8,9]) Let L and ◦ be like in Definition 3.2.7 ◦ is a strong consistency operator (for ¬) if every instance of the subsequent axioms is theorem of L: [b] (◦ϕ∧¬ϕ∧ϕ)→ψ, [k]◦ϕ∨(¬ϕ∧ϕ). By consider the intuitive meaning of ◦ϕ as “ ϕ is consistent” , the axiom [b] suggests that no formula is both consistent and contradictory . On the other hand, axiom [k] acts as complement of axiom [b]by stating that every formula is either consistent or contradictory. So, the combination of the axioms [b] and [k] captures the principle of the desired meaning of ◦, and so demanding their combination is natural. Definition 3.2.11 (Strong C-System [8]) Let Land ◦be like in Definition 3.2.7. •L is a strong ◦ -C-system if it is a classical ¬ -paraconsistent logic in which ◦ stands for a strong consistency operator for ¬, and ¬is complete .
3.2. Paraconsistent Logics 86 •Lis a strong C-system if it is strong ◦-C-system for some ◦. Definition 3.2.12 (Bottom element [8]) A formula F is said to be bottom element for a logic L in Lif `LF→ϕfor every ϕ∈ W(L). the most basic c-systems The most basic systems of the are Band Bk . Let be a language LC={∧,∨,→,¬,◦}. Definition 3.2.13 (HB,HBk,B,Bk [8]) The Hilbert-type system HB stands for the extension in LC of HCLuN (Definition 3.2.14) with axiom [b] . The system HBk by itself is the extension of HB by adding the axiom [k] . B,Bk are the logics in LC induced by HB and HBk , respectively (i.e., B=LHB,Bk =LHBk). Definition 3.2.14 (HCLuN [8]) HCLuN is the system acquired from HCL+ (Definition 3.1.13) by adding the axiom: [t]¬ϕ∨ϕ. B is also known as “the most basic C-system”, and so it is denominated by most basic C-system (mbC) , [ 21 ]. Nevertheless, in [ 8 ] is argue that Bk would be a more suitable candidate for mbC. The rationale behind this is explained in three main points, attending to Hilbert type proof systems. The first one, is that there is no axiom [k] , axiom which is important for the desired meaning of ◦ϕ that is no less important that what is expressed by [b] . Secondly, Bk has a particular completeness property that B lacks, i.e.: there is a divergence between the minimality of Bk (Proposition) and the ¬ -paraconsistent axiomatics extensions of B , which are ¬ -contained in classical logic , although in which ◦ is not a consistency operator . And the third one: [k] is a theorem of the majority of important C-systems , since it is derivable in B from three crucial axioms related to ◦ , which will be mentioned in the sequel : [i],[l] , and [d]. propagation of consistency So far, it was mentioned extensions Bk with some of the most standard axioms regarding negation, ¬ connective. Additionality, there is special type of axioms: those that deals with consistency propagation, Definition 3.2.15. Such axioms are split among two sets: the a -axioms, and the o -axioms. The a -axioms are safer for holding strong paraconsistency, although they require that every immediate proper subformula of a complex formula ϕ to be consistent in order to make ϕ consistent. On the other hand, in the o -axioms it is enough that some immediate proper subformula of ϕ to be consistent in order to make ϕconsistent.
3.2. Paraconsistent Logics 87 Definition 3.2.15 (Propagation axioms for the connectives of LC) [a¬]` ◦ϕ→ ◦¬ϕ [a∧]`(◦ϕ∧◦ψ)→ ◦(ϕ∧ψ) [a∨]`(◦ϕ∧◦ψ)→ ◦(ϕ∨ψ) [a→]`(◦ϕ∧◦ψ)→ ◦(ϕ→ψ) [a◦]` ◦ϕ→ ◦◦ ϕ [o1 ∧]` ◦ϕ→ ◦(ϕ∧ψ) [o2 ∧]` ◦ψ→ ◦(ϕ∧ψ) [o1 ∨]` ◦ϕ→ ◦(ϕ∨ψ) [o2 ∨]` ◦ψ→ ◦(ϕ∨ψ) [o1 →]` ◦ϕ→ ◦(ϕ→ψ) [o2 →]` ◦ψ→ ◦(ϕ→ψ) Also, one of the most essential usage of the a -axioms is that they can strengthen the key Theorem 3.2.1, in a significant manner. Theorem 3.2.2 ([ 8 ]) For L as a regular ◦ -C-system in which all the a -axioms (with the possible exception of a◦ ) are provable and T ∪{ψ} as a set of formulas in LCL , there is T `CL ψ iff there exists a finite set ∆of propositional variables which occur in T ∪{ψ}such that ◦∆∪T `Lψ. Remark 3.2.2 ([ 8 ]) By consider the instance ◦◦ ϕ∨(◦ϕ∧¬◦ ϕ) of [k] , it is possible to show that ϕ→ ◦◦ ϕis equivalent to ◦◦ ϕin Bk. a special definition of consistency operator In all the above mentioned C-systems there is a emphasis on an operator for formal consistency, instead of formal inconsistency . The motive for this is that inconsistency of ϕ implies that bot ϕ and ¬ϕ are true, i.e. such is expressed by the sentence ϕ∧¬ϕ . In fact, as mentioned in [ 8 , Section 8.4], the content of two axioms concerning negation of HBk (i.e., [b],[k] ) states that each ◦ϕ and ϕ∧ ¬ϕ is equivalent to the classical negation of the other: one of them is always true , but never both of them are true. The core idea behind da Costa’s main system C1 regarding (in)consistency of formulas, the negation ¬ of the logic acts as classical negation, and consequently ¬(ϕ∧¬ϕ) can act as a definition of the consistency operator in LCL . By consider da Costa’s idea of consistency operator is possible to verify that the sentences
3.3. Paraconsistent Logics in Quantum Computing: Paraconsistent Turing Machines 88 ◦ϕ→ ¬(ϕ∧¬ϕ) and (ϕ∧¬ϕ)→ ¬◦ ϕ are theorems of B ( [ 8 ]). So, what is crucial to make ◦ϕequivalent to the negation ϕ∧¬ϕ, and vice versa, are the subsequent two axioms : [i]¬◦ ϕ→(ϕ∧¬ϕ), [l]¬(ϕ∧¬ϕ)→ ◦ϕ. Remark 3.2.3( [8]) Also, there is the alternative way of one consider ¬ϕ∧ϕ as expressing consistency of ϕ with the use of ¬(¬ϕ∧ϕ) as the consistency operator.Thus, in this circumstance [l] must be replaced by the following axiom: [d]¬(¬ϕ∧ϕ)→ ◦ϕ. 3.3 paraconsistent logics in quantum computing:paraconsistent turing machines In late 1930’s article [ 49 ], A.M. Turing formalizes the presently known definition of Turing Machine (TM) and establishes a difference between two kinds of machines: automatic machine (a-machine) and choice machine (c-machine). An a-machine is a machine where all its actions are entirely determined by its configuration: Deterministic Turing Machine (DTM). On the other hand, a c-machine is a machine where its actions are merely in part determined by the machine configurations, i.e., in an ambiguous configuration this kind of machine cannot continue until certain outward operator selects an instruction to be executed: Non- Deterministic Turing Machine (NDTM). As mentioned by J.C. Agudelo and W.Carnielli in [ 7 ] and asserted by P. Odifreddi in [ 43 , p. 48], in a DTM is required the inexistency of ambiguous instructions, since ambiguous instructions can led to the undecidability problem of a presented (non-paraconsistent) First Order Logic (FOL), cf. [ 20 , 27 , 49 ]. In [ 43 ], P.Odifreddi also defines the following concepts: NDTM and Probabilistic Turing Machine (PrTM). He defines a NDTM as a machine that, towards an ambiguous configuration, indiscriminately chooses an instruction to be executed, and a PrTM as a machine that, towards an ambiguous configuration, chooses an instruction to be executed by following a probability distribution. By focus in the NDTM, when a NDTM reaches an ambiguous configuration then its inherent theory (related to its FOL) can be contradictory, [ 6 , Theorem 3]. So, for this reason, J.C. Agudelo and W.Carnielli proposes a model of computation called ParTM, [ 6 , 7 ]. A ParTM is a NDTM such that: • Contradictory instructions are permitted;
3.3. Paraconsistent Logics in Quantum Computing: Paraconsistent Turing Machines 89 • Towards an ambiguous configuration the machine executes at once and parallelly all possible instructions, originating a multiplicity of states, of positions, and of symbols in certain cells of the tape; • Instructions are executed in certain cells of the tape, and in the execution the instruction directs the present symbols in the cells in such way that they are not altered for the same cells in the subsequent instant of time; • At the end of the computation, when there are no instructions to execute, every single cell of the tape can have multiple symbols 2 , any choice of these symbols stands for an result of the computation . Where the underlining logic is a LFI: LFI1 , [ 24 ]. In LFI1 , contradiction and inconsistency are characterized by means of the equivalence •ϕ↔(ϕ∧¬ϕ), where •stands for a inconsistency operator that can be related to ◦ϕby : •ϕ=¬◦ ϕ. quantum computation and paraconsistent computation As stated in [ 6 , 7 ], there are two well known models of quantum computation: Quantum Turing Machine (QTM) and QCM. These two models are generalizations of the concept of TM and boolean circuits, respectively , by applying the laws of QM. By focusing in the concept of QTM, since QCM was already been characterized in, the generalization concerning QTM is done by replacing elements 3 of the classical TM for observables in a quantum system. The generalization concerning QTM is done by replacing elements of the classical TM for observables in a quantum system. This approach follows the postulates of QM, i.e., to a QTM is related a space state, the state of the QTM is provided by a vector state of the space state, and the evolution of QTM is described by a unitary operator. Certain restrictions are imposed to condition unitary in order to assure that the machine operates finitely, i.e. (cf. [ 6 , 7 , 30 , 44 ]) : • Just a single element of the system must be in motion for the period of time of each step; • The motion should simply depend on the quantum state of a finite subsystem; • The laws that specify the motion are required to be mathematical finite. 2Instructions of a TM can be defined by quadruples of this symbols, cf. [6,7]. 3such as current state,position and symbols on the tape
3.3. Paraconsistent Logics in Quantum Computing: Paraconsistent Turing Machines 90 Remark 3.3.1 Therefore, defining QTM lies fundamentally on the defining of a unitary operator with the above conditions. On the other hand, by comparing NDTMs and ParTMs. The difference between NDTMs and ParTMs is that in the scenario of multiple paths of computation the NDTMs will only “take profit” of one specific path of all the multiple paths, whereas ParTMs can “take profit” of all multiple paths of computation in only one computation, a certain computational parallelism, a paraconsistent parallelism. Also, in the same scenario, a QTM will behaviour by being simultaneously in an exponential number of configurations derived by the multiple paths and the number of computational steps, quantum parallelism. The simultaneously configurations of a QTM stand for superposition state of the machine (for a quantum superposition state). Furthermore, simultaneously configurations may possibly be entangled (for a quantum entangled state). it is possible to simulate quantum computing via paraconsistent turing machines? As asserted in [ 6 , 7 ], it is possible to look at ParTM as a uniform 4 superposition of classical TM configurations. So, by this point of view ParTMs are like QTMs, i.e. it is possible to consider ParTMs as QTMs without amplitudes, which permits only to represent uniform superposition states. Still, in ParTMs, actions executed by distinct instructions mix indiscriminately, therefore every single combination of the singular elements in a ParTM is consider, which makes it unfeasible to represent (quantum) entangled states by merely contemplate the multiplicity of elements as a superposed state. One more difference between ParTMs and QTMs is that superposed states in the first ones do not provide a notion of relative phase (i.e., signs of basis states in uniform superpositions), an essential characteristic of quantum superposition required for quantum interference. Such a characteristic is the main mechanism for getting gain of quantum parallelism. However, ParTMs make profit from inconsistency conditions through paraconsistent parallelism, which appears to be a more powerful property than quantum interference (cf. [ 6 ]). Even so, ParTMs are able to simulate essential aspects of quantum computing; in specific, they are capable of simulate uniform non-entangled superposed quantum states and solve the Deustch and Deustch-Jozsa problems , while keeping the efficiency of quantum algorithms, although with some restrictions, [6,7]. a model of paraconsistent turing machine for quantum entanglement Also, in [ 6 ], J.C. Agudelo and W.Carnielli defined another model of ParTMs , founded on a paraconsistent logic provided of a “non-separable” conjunction , which allows the simulation of uniform entangled states and stands for a improved approach for the model of QTMs: 4 A state of superposition is uniform if all the states in the superposition have non-null equal amplitude magnitude .
3.4. A Paraconsistent Approach of PhLQP 91 the Entangled Paraconsistent Turing Machine (EParTM) model. A EParTM is a NDTM such that: • In an ambiguous configuration with n possible instructions of execution, the machine configuration will split up into ncopies, executing a distinct instruction per copy; • The set of the different configurations for a given instant of time t is called a superposed configuration; • Only on the first two symbols corresponding to instructions are allowed inconsistency conditions; • When there are no instructions to be executed, the machine will stop; and at this point the machine can be in a superposed configuration, with each configuration in superposition configuration representing a result of the computation. Although, EParTMs are not able to express the notion of relative phase, the notion of relative phase can be incorporated in EParTMs, as demonstrated in [ 6 ]: such can be done by adding a sign indicating the relative phase of the configuration, and a new type of instructions to modify the relative phase. 3.4 a paraconsistent approach of phlqp This section is developed over two main points. The first one aims to define the notion of (in)consistent quantum state among the quantum space, as well as the concept of Paraconsistent Phased Quantum Frame (PhQF ◦ ). The consistency of quantum state will be defined attending if it is a quantum state where superposition holds (i.e. Hadamard basis holds), and if it is a quantum state where multiple and distinct phases hold on a coefficient for the basis (i.e. if it is a normalized sum of exponentials that forms the respective coefficient). The second one intends to add paraconsistent features to PhLQP, resulting in a logic, the PhLQP ◦ . 3.4.1The Quantum Space and Paraconsistent Quantum Frames Consider Subsection 2.2.1and what follows in the sequel. the set of states Σ×Φ∧ Let Φ∧ standing for the Φ -subspace equipped with classical conjunction (i.e. the “ ∧ ” operator) in such way that is possible to built the definition of phase vector.
3.4. A Paraconsistent Approach of PhLQP 98 Where the above connective ∧ must be interpreted as a non-separable one, i.e., as in [ 6 ] for EParTMs . Theorem 3.4.1(Soundness of FParQAxs) The FParQAxs are sound. Proof 3.4.1(Theorem 3.4.1)Let w ∈Σ×Φ∧be a state. 1.Soundness of FParQAx1: k◦ψ=◦ ∼ ψk=k ◦ψ↔◦ ∼ ψk =k ◦ψ→◦ ∼ ψk∩k◦ ∼ ψ→ ◦ψk =k¬( ◦ψ∧¬◦ ∼ ψ)k ∩ k¬(◦ ∼ ψ∧¬ ◦ψ)k • For the term ( ◦ψ∧¬◦ ∼ ψ): k ◦ψ∧¬◦ ∼ ψk=k ◦ψk ∩ k¬◦ ∼ ψk = ◦kψk ∩ Σ\k◦ ∼ ψΣk×k◦ ∼ ψΦ∧k ={>,⊥}∩Σ\ ◦k ∼ ψΣk× ◦kψΦ∧k ={>,⊥}∩Σ\{>Σ,⊥Σ}×{>Φ∧,⊥Φ∧} =∅. • For the term (◦ ∼ ψ∧¬ ◦ψ): k◦ ∼ ψ∧¬ ◦ψk=k◦ ∼ ψk ∩ k¬ ◦ψk = ◦k ∼ ψk ∩ Σ\k ◦ψΣk×k ◦ψΦ∧k ={>,⊥}∩Σ\{>Σ,⊥Σ}×{>Φ∧,⊥Φ∧} =∅. Therefore, k◦ψ=◦ ∼ ψk=Σ\∅×Φ∧∩Σ\∅×Φ∧ =Σ×Φ∧. 2.Soundness of FParQAx2: k◦ψ=◦ψ†k=k ◦ψ↔ ◦ψ†k =k ◦ψ→ ◦ψ†k∩k ◦ψ†→ ◦ψk =k¬( ◦ψ∧¬ ◦ψ†)k ∩ k¬( ◦ψ†∧¬ ◦ψ)k
3.4. A Paraconsistent Approach of PhLQP 99 • For the term ( ◦ψ∧¬ ◦ψ†): k ◦ψ∧¬ ◦ψ†k=k ◦ψk ∩ k¬ ◦ψ†k = ◦kψk ∩ Σ\k ◦ψ† Σk×k ◦ψ† Φ∧k ={>,⊥}∩Σ\ ◦kψ† Σk× ◦kψ† Φ∧k ={>,⊥}∩Σ\{>Σ,⊥Σ}×{>Φ∧,⊥Φ∧} =∅. • For the term ( ◦ψ†∧¬ ◦ψ): k ◦ψ†∧¬ ◦ψk=k ◦ψ†k ∩ k¬ ◦ψk = ◦kψ†k ∩ Σ\k ◦ψΣk×k ◦ψΦ∧k ={>,⊥}∩Σ\ ◦kψΣk× ◦kψΦ∧k ={>,⊥}∩Σ\{>Σ,⊥Σ}×{>Φ∧,⊥Φ∧} =∅. Therefore, k◦ψ=◦ψ†k=Σ\∅×Φ∧∩Σ\∅×Φ∧ =Σ×Φ∧. 3.Soundness of FParQAx3: k◦ψ≤ ◦◦ψk=k ◦ψ→ ◦◦ψk =k¬( ◦ψ∧¬ ◦◦ψ)k • For the term ( ◦ψ∧¬ ◦◦ψ) k ◦ψ∧¬ ◦◦ψk=k ◦ψk ∩ k¬ ◦◦ψk = ◦kψk ∩ Σ\k ◦◦ψΣk×k ◦◦ψΦ∧k ={>,⊥}∩Σ\{>Σ}×{>Φ∧} =∅. So, k◦ψ≤ ◦◦ψk=Σ\∅×Φ∧ =Σ×Φ∧.
3.4. A Paraconsistent Approach of PhLQP 100 4.Soundness of FParQAx4: k◦(ϕtψ)≤(◦ϕt◦ψ)k=k ◦(ϕtψ)→(◦ϕt◦ψ)k =k¬( ◦(ϕtψ)∧¬(◦ϕt◦ψ))k • For the term ◦(ϕtψ): k ◦(ϕtψ)k=k◦(ϕtψ)k = ◦k(ϕtψ)k ={⊥} . • For the term ¬(◦ϕt◦ψ): k¬(◦ϕt◦ψ)k=k¬ ∼(∼ ◦ϕ∧∼◦ψ)k =Σ\k ∼(∼ ◦ϕΣ∧∼◦ψΣ)k×k ∼(∼ ◦ϕΦ∧∼◦ψΦ)k =Σ\{⊥Σ,>Σ}×{⊥Φ∧,>Φ∧}. • For the term ( ◦(ϕtψ)∧¬(◦ϕt◦ψ)): k( ◦(ϕtψ)∧¬(◦ϕt◦ψ))k=k ◦(ϕtψ)k ∩ k¬(◦ϕt◦ψ)k ={⊥} ∩ Σ\{⊥Σ,>Σ}×{⊥Φ∧,>Φ∧} =∅. Therefore, k◦(ϕtψ)≤(◦ϕt◦ψ)k=Σ\∅×Φ∧ =Σ×Φ∧. 5.Soundness of FParQAx5 k(◦ϕ∧◦ψ) = ◦(ϕ∧ψ)k=k(◦ϕ∧◦ψ)↔ ◦(ϕ∧ψ)k =k(◦ϕ∧◦ψ)→ ◦(ϕ∧ψ)k ∩ k ◦(ϕ∧ψ)→(◦ϕ∧◦ψ)k =k¬((◦ϕ∧◦ψ)∧¬ ◦(ϕ∧ψ))k ∩ k¬( ◦(ϕ∧ψ)∧¬(◦ϕ∧◦ψ))k
3.5. Examples of Inconsistency in Quantum Computing 101 • For the term ((◦ϕ∧◦ψ)∧¬ ◦(ϕ∧ψ)): k(◦ϕ∧◦ψ)∧¬ ◦(ϕ∧ψ)k=k(◦ϕ∧◦ψ)k ∩Σ\ ◦k(ϕΣ∧ψΣ)k×k(ϕΦ∧∧ψΦ∧)k =(◦kϕk ∩ ◦kψk) ∩Σ\{⊥Σ,>Σ}×{⊥Φ∧,>Φ∧} =({>,⊥} ∩ {>,⊥}) ∩Σ\{⊥Σ,>Σ}×{⊥Φ∧,>Φ∧} =∅. • For the term ( ◦(ϕ∧ψ)∧¬(◦ϕ∧◦ψ)): k ◦(ϕ∧ψ)∧¬(◦ϕ∧◦ψ)k= ◦k(ϕ∧ψ)k ∩Σ\k(◦ϕΣ∧◦ψΣ)k×k(◦ϕΦ∧∧◦ψΦ∧)k ={>,⊥} ∩ Σ\(◦kϕΣk ∩ ◦kψΣk) ×(◦kϕΦ∧k ∩ ◦kψΦ∧k) ={>,⊥}∩Σ\{>Σ,⊥Σ}×{>Φ∧,⊥Φ∧} =∅. Therefore, k(◦ϕ∧◦ψ) = ◦(ϕ∧ψ)k=Σ\∅×Φ∧∩Σ\∅×Φ∧ =Σ×Φ∧. 3.5 examples of inconsistency in quantum computing 3.5.1A Paraconsistent View on the Hadamard Gate The simplest example is the Hadamard gate, since it induces a state with a computational standard basis into a superposition state, or vice-versa. In other words, it induces inconsistency or breaks it . Therefore, consider a Hadamard gate with an input state s and an output state s0, Figure 16 . |siH|s0i Figure 16: A Hadamard-gate with an input state sand an output state s0. .
3.5. Examples of Inconsistency in Quantum Computing 102 Attending to the behaviour of the Hadamard gate , it is noticeable that the paraconsistent validity is ` ◦πΣ(s) =∼ ◦πΣ(s0) or equivalently ` ◦πΣ(s) =∼ ◦πΣ(H(s)) expresses the correctness of the Hadamard gate . And by the characteristic dynamic axioms of the Hadamard gate in Subsection 2.2.4, the above validity always holds . Characteristic axiom for the paraconsistent behaviour of the Hi-gate: ` ◦s=i∼ ◦Hi(s). 3.5.2The Deustch Gate By following [46]. The Deutsch Gate , Dθ, is a three-qubit gate and is defined by : αβ |q0,q1,q2i7→ (αβicos(θ)|q0,q1,q2i+αβ sin(θ)|q0,q1, 1 −q2ifor q0=q1=1 α|q0,q1,q2iotherwise. with q0,q1,q2∈ {0, 1}, α=∑n i=1e2πi(φi) ∑n i=1e2πi(φi), β=∑m j=1e2πi(φ0 j) ∑m j=1e2πi(φ0 j) , and n,m∈Nn>0. Attending to the behaviour of the Dθ it is perceptible that no matter what states are the qubits with |q0i,|q1i as quantum basis , their states maintain the same, this is their basis as their phases are invariable. These qubits act as control-qubits. In fact, the TOFF-gate is a specific case of the Dθ -gate, i.e., Dπ 2 . The coefficient α is the coefficient associated to the phase vector ~ φn of the quantum basis |q0, q1i , and β is the coefficient associated to the phase vector ~ φ0mof the quantum basis |q2i. Therefore , it is possible to write : Dθ(αβ |q0,q1,q2i)7→ α|q0,q1i⊗β(icos(θ)|q2i+sin(θ)|1−q2i) for q0=q1=1 with q2∈ {0, 1} . For q0=0∨q1=0 , the Dθ act as a three-qubit identity gate . Now consider q0,q1,q2∈ {0, 1, +,−} . When q0,q1∈ {+,−} with q2∈ {0, 1} , there is: Dθ(αβ |q0,q1,q2i)7→ 1 √2α|q0,q1i⊗β(icos(θ)|q2i+sin(θ)|1−q2i)+αβ √2|q0,q1,q2i.
3.5. Examples of Inconsistency in Quantum Computing 103 With the conditions of q0=q1=1 and q2= +: Dθ(αβ |q0,q1,q2i)7→ α|q0,q1i⊗β √2(icos(θ)|0i+sin(θ)|1i) + (icos(θ)|1i+sin(θ)|0i). Similar with q0=q1=1 and q2=−, there is: Dθ(αβ |q0,q1,q2i)7→ α|q0,q1i⊗β √2(icos(θ)|0i+sin(θ)|1i)−(icos(θ)|1i+sin(θ)|0i). When q0,q1∈ {+,−} and q2= +: Dθ(αβ |q0,q1,q2i)7→ α √2|q0,q1i⊗β √2(icos(θ)|0i+sin(θ)|1i) + (icos(θ)|1i+sin(θ)|0i) +αβ √2|q0,q1,q2i. And at last , for q0,q1∈ {+,−} and q2=−: Dθ(αβ |q0,q1,q2i)7→ α √2|q0,q1i⊗β √2(icos(θ)|0i+sin(θ)|1i)−(icos(θ)|1i+sin(θ)|0i) +αβ √2|q0,q1,q2i. axioms for the dynamic behaviour of the deutsch gate Let Dθ be denoted as D2π.φDwith θ=2π.φD. Locality for the Deutsch Gate . The Deutsch Gate acts only in the specified qubits : ` {i,j,k}(D2π.φijk ).
3.5. Examples of Inconsistency in Quantum Computing 104 Characteristic axioms for the dynamic behaviour of the D2π.φDijk -gate `(q0iq1j,~ φn)ij ∧(q2,~ φ0m)k→[D2π.φDijk ](q2,~ φ0m)kfor q0=0∨q1=0 and q2∈ {0, 1, +,−} ; `(11, φ0)ij ∧♦(q2,~ φ0m+φDφ∗ D+1 4)k∧♦(1−q2,φ((φ∗+1 2)mod 1) + 3 4)k→[D2π.φijk ](q2,~ φ0m)k with q2∈ {0, 1}; `♦(q0iq1j,~ φn)ij ∧(q2,~ φ0m)k)∧♦(q0iq1j,~ φn)ij ∧(♦(q2,~ φ0m+φDφ∗ D+1 4)k∧♦(1−q2,~ φ0m+ φD(φ∗ D+1 2)mod 1) + 3 4)k))→[D2π.φijk ](q2,~ φ0m)kwith q0,q1∈ {+,−} and q2∈ {0, 1}; `(11, φ0)ij ∧(♦(♦(0, ~ φ0m+φDφ∗ D+1 4)k∧♦(1, ~ φ0m+φD(φ∗ D+1 2)mod 1) + 3 4)k)) ∧♦(♦(1, ~ φ0m +φDφ∗ D+1 4)k∧♦(0, ~ φ0m+φD(φ∗ D+1 2)mod 1) + 3 4)k))) →[D2π.φijk ](+,~ φ0m)k; `(11, φ0)ij ∧(♦(♦(0, ~ φ0m+φDφ∗ D+1 4)k∧♦(1, ~ φ0m+φD(φ∗ D+1 2)mod 1) + 3 4)k)) ∧♦(♦(1, ~ φ0m +φDφ∗ D+1 4+1 2)k∧♦(0, ~ φ0m+φD(φ∗ D+1 2)mod 1) + 3 4+1 2)k)))→[D2π.φijk ](−,~ φ0m)k; `♦(q0iq1j,~ φn)ij ∧(+,~ φ0m)k)∧♦(q0iq1j,~ φn)ij ∧(♦(♦(0, ~ φ0m+φDφ∗ D+1 4)k∧♦(1, ~ φ0m+φD(φ∗ D+1 2) mod 1) + 3 4)k)) ∧♦(♦(1, ~ φ0m+φDφ∗ D+1 4)k∧♦(0, ~ φ0m+φD(φ∗ D+1 2)mod 1) + 3 4)k))) →[D2π.φijk ](+,~ φ0m)kwith q0,q1∈ {+,−}; `♦(q0iq1j,~ φn)ij ∧(+,~ φ0m)k)∧♦(q0iq1j,~ φn)ij ∧(♦(♦(0, ~ φ0m+φDφ∗ D+1 4)k∧♦(1, ~ φ0m+φD(φ∗ D+1 2) mod 1) + 3 4)k)) ∧♦(♦(1, ~ φ0m+φDφ∗ D+1 4+1 2)k∧♦(0, ~ φ0m+φD(φ∗ D+1 2)mod 1) + 3 4+1 2)k))) →[D2π.φijk ](−,~ φ0m)kwith q0,q1∈ {+,−}. the paraconsistency of the deutsch gate Let |qi=αβ |q0q1q2i standing for the input state of the Dθ -gate and q0=Dθ(q) for its output state . As said before, when q1=0∨q2=0 the Dθ acts as identity-gate. So, the consistency of the output state is the same as the input state since the input state and the output state are the same state. On the other hand, if q0,q1∈ {1, +,−} , the output state Dθ will be always inconsistent by the Definition 3.4.6. This is, Dθ -gate always induce a phase vector of length two on the πΦ∧(q) - component of the input state q. Characteristic axioms for the paraconsistent behaviour of the Dθijk -gate `πΣ(q) =i0∨πΣ(q) =j0)→◦Dθijk (q) = ◦q∧(Dθijk (q) = id(q); `πΣ(q)6=i0∧πΣ(q)6=j0)→◦Dθijk (q) = ⊥.
3.5. Examples of Inconsistency in Quantum Computing 105 a concrete scenario of the deutsch gate behaviour Now , consider the Figure 17 as the possible QCM illustration for the Dθ-gate. Dθ Figure 17: A possible quantum circuit illustration for the Dθ-gate. And the quantum program depicted in Figure 18 . For the state q0 kthere is : |qiii=|1ii|q0 iii=|qiii qjj=|1ijq0jEj=qjj |qkik=|0ikDθq0 kk6=|qkik Figure 18: A simple quantum program with the Dθ-gate. q0 k=icos(θ)|0i+sin(θ)|1i=icos(2π.φD)|0i+sin(2π.φD)|1i. By the PhLQP◦syntax, the above quantum program can be expressed by: πD=D2π.φijk (qii∧qjj∧qkk). With the following validity asserting the correctness of the program: `πD(qii∧qjj∧qkk) =ij id(qii∧qjj) | {z } 1st condition ∧πD;πD(qii∧qjj∧qkk) = id(qii∧qjj∧qkk) | {z } 2nd condition ∧◦πD(qii∧qjj∧qkk) = ⊥ | {z } 3rd condition , for qi=qj= (1, 0)and qk= (0, 0). For the 1st condition, there is : πD(qii∧qjj∧qkk) = D2π.φijk (qii∧qjj∧qkk) =ij D2π.φijk (qii∧qjj).
3.5. Examples of Inconsistency in Quantum Computing 106 Notice that {i,j} -qubits act as control qubits, and so their states qi and qj are invariant to the program, i.e.: D2π.φijk (qii∧qjj) =ij qii∧qjj=id(qii∧qjj). In concern to the 2nd condition : πD;πD(qii∧qjj∧qkk) = D2π.φijk ;D2π.φijk (qii∧qjj∧qkk). And due to the inherent property of quantum gates: D2π.φijk ;D2π.φijk (qii∧qjj∧qkk) = D−1 2π.φijk ;D2π.φijk (qii∧qjj∧qkk) = id(qii∧qjj∧qkk). At last, for the 3rd condition : ◦πD(qii∧qjj∧qkk) = ◦D2π.φijk (qii∧qjj∧qkk) = ⊥. Since qi=qj= (1, 0).
4 CONCLUSIONS AND PROSPECT FOR FUTURE WORK 4.1 conclusions The aim of this dissertation was to design a variant of a dynamic logic with paraconsistent features to reason about quantum programs. With the dynamic nature of the logic the intention is to provide a basis for verifying quantum programs correctness. On the other hand, with paraconsistent features it is possible to treat non consistent information as potentially informative, e.g., quantum superposition states. The work in this dissertation was started by the study of the concept of a dynamic logic applied to the quantum domain. It was possible to conclude that to characterize a quantum state by the transitions specified by a quantum program is a powerful tool to analyse the correctness of such program. However, in the studied dynamic logics [ 11 , 14 , 16 , 17 , 18 ], there was a gap in what concerns the expression of quantum phase related proprieties. In particular, it was seen that the interpretation of a quantum state as a “ray” in a Hilbert space seems too limited, and that a dynamic logic based on such an interpretation of quantum states is very unlikely to be able to reason about such proprieties. Therefore, with this point of view the first step to design the desired logic is to consider a new interpretation of quantum states and from there shape such a logic. So, a new interpretation of quantum state was proposed. Such unorthodox interpretation relies on looking at a quantum state in a more “vectorized” way and represents such state by a pair (σ,φ) in Σ×Φ . Where Σ is the set {0, 1, +,−} that stands for the standard computational basis {|0i,|1i} and for the Hadamard basis {|+i,|−i}, and Σis the subspace of the quantum phases. Later, upon this new interpretation to a quantum state there was the necessity of limit the subspace of the quantum phases, Φ , by defining the elements φ of Φ as follows : φ<1, φ∈Q . Where the restriction φ<1 is due to the fact of e2πi=e0 and e2πni =e2πi,n∈N . A modular arithmetic for operating over the elements of Φ , concerning the periodicity property of Euler’s formulas , and so the periodicity of quantum phases, was used. In this new line of thought of how to model a quantum state, it is proposed re-design of the (LQP) ([ 14 ]) designated by PhLQP, since LQP already provides a good foundation for verifying properties of quantum programs that not deal with quantum phase proprieties. 107