-
arXiv:2311.01054 [pdf, ps, other]
A feasible and unitary quantum programming language
Abstract: We introduce a novel quantum programming language featuring higher-order programs and quantum controlflow which ensures that all qubit transformations are unitary. Our language boasts a type system guaranteeingboth unitarity and polynomial-time normalization. Unitarity is achieved by using a special modality forsuperpositions while requiring orthogonality among superposed terms. Polynomial-time no… ▽ More
Submitted 5 March, 2024; v1 submitted 2 November, 2023; originally announced November 2023.
-
A linear proof language for second-order intuitionistic linear logic
Abstract: We present a polymorphic linear lambda-calculus as a proof language for second-order intuitionistic linear logic. The calculus includes addition and scalar multiplication, enabling the proof of a linearity result at the syntactic level.
Submitted 25 January, 2024; v1 submitted 12 October, 2023; originally announced October 2023.
Comments: arXiv admin note: substantial text overlap with arXiv:2201.11221
Journal ref: (WoLLIC 2024) - LNCS 14672:18-35, 2024
-
A General Probabilistic Framework in IMALL: A Concrete Categorical Perspective
Abstract: We consider the linear lambda-calculus extended with the sup type constructor, which provides an additive conjunction along with a non-deterministic destructor. The sup type constructor has been introduced in the context of quantum computing. In this paper, we study this type constructor within a simple linear logic categorical model, employing the category of semimodules over a commutative semiri… ▽ More
Submitted 12 April, 2024; v1 submitted 8 September, 2023; originally announced September 2023.
Comments: There is a mistake in the adequacy proof for the first language. The other languages have been integrated into arXiv:2205.02142, making this paper merely a concrete example
-
arXiv:2205.02142 [pdf, ps, other]
The Sup Connective in IMALL: A Categorical Semantics
Abstract: We explore a proof language for intuitionistic multiplicative additive linear logic, incorporating the sup connective that introduces additive pairs with a probabilistic elimination, and sum and scalar products within the proof-terms. We provide an abstract characterization of the language, revealing that any symmetric monoidal closed category with biproducts and a monomorphism from the semiring o… ▽ More
Submitted 10 April, 2024; v1 submitted 4 May, 2022; originally announced May 2022.
MSC Class: 18M45 03F52 03B70
-
arXiv:2204.03885 [pdf, ps, other]
A Quick Overview on the Quantum Control Approach to the Lambda Calculus
Abstract: In this short overview, we start with the basics of quantum computing, explaining the difference between the quantum and the classical control paradigms. We give an overview of the quantum control line of research within the lambda calculus, ranging from untyped calculi up to categorical and realisability models. This is a summary of the last 10+ years of research in this area, starting from Arrig… ▽ More
Submitted 8 April, 2022; originally announced April 2022.
Comments: In Proceedings LSFA 2021, arXiv:2204.03415
Journal ref: EPTCS 357, 2022, pp. 1-17
-
A linear linear lambda-calculus
Abstract: We present a linearity theorem for a proof language of intuitionistic multiplicative additive linear logic, incorporating addition and scalar multiplication. The proofs in this language are linear in the algebraic sense. This work is part of a broader research program aiming to define a logic with a proof language that forms a quantum programming language.
Submitted 9 April, 2024; v1 submitted 26 January, 2022; originally announced January 2022.
Comments: This is the full revised journal version of the FSCD 2022 paper published at LIPIcs 228:21, 2022
-
A Note on Confluence in Typed Probabilistic Lambda Calculi
Abstract: On the topic of probabilistic rewriting, there are several works studying both termination and confluence of different systems. While working with a lambda calculus modelling quantum computation, we found a system with probabilistic rewriting rules and strongly normalizing terms. We examine the effect of small modifications in probabilistic rewriting, affine variables, and strategies on the overal… ▽ More
Submitted 8 April, 2022; v1 submitted 11 June, 2021; originally announced June 2021.
Comments: In Proceedings LSFA 2021, arXiv:2204.03415
Journal ref: EPTCS 357, 2022, pp. 18-24
-
arXiv:2101.03215 [pdf, ps, other]
Polymorphic System I
Abstract: System I is a simply-typed lambda calculus with pairs, extended with an equational theory obtained from considering the type isomorphisms as equalities. In this work we propose an extension of System I to polymorphic types, adding the corresponding isomorphisms. We provide non-standard proofs of subject reduction and strong normalisation, extending those of System I.
Submitted 19 May, 2021; v1 submitted 8 January, 2021; originally announced January 2021.
Comments: 20 pages plus appendix
Journal ref: In IFL 2020: Proceedings of the 32nd Symposium on Implementation and Application of Functional Languages (IFL 2020). Association for Computing Machinery, New York, NY, USA, 127-137
-
arXiv:2012.08994 [pdf, ps, other]
A New Connective in Natural Deduction, and its Application to Quantum Computing
Abstract: We investigate an unsuspected connection between logical connectives with non-harmonious deduction rules, such as Prior's tonk, and quantum computing. We argue that these connectives model the information-erasure, the non-reversibility, and the non-determinism that occur, among other places, in quantum measurement. We introduce an intuitionistic propositional logic with a non-harmonious logical co… ▽ More
Submitted 21 March, 2023; v1 submitted 16 December, 2020; originally announced December 2020.
Comments: Accepted at TCS
Journal ref: Theoretical Computer Science 957:113840, 2023
-
Quantum Control in the Unitary Sphere: Lambda-S1 and its Categorical Model
Abstract: In a recent paper, a realizability technique has been used to give a semantics of a quantum lambda calculus. Such a technique gives rise to an infinite number of valid ty** rules, without giving preference to any subset of those. In this paper, we introduce a valid subset of ty** rules, defining an expressive enough quantum calculus. Then, we propose a categorical semantics for it. Such a sema… ▽ More
Submitted 9 September, 2022; v1 submitted 10 December, 2020; originally announced December 2020.
MSC Class: 18C50; 03B40
Journal ref: Logical Methods in Computer Science, Volume 18, Issue 3 (September 12, 2022) lmcs:7408
-
arXiv:2007.03648 [pdf, ps, other]
The Vectorial Lambda Calculus Revisited
Abstract: We revisit the Vectorial Lambda Calculus, a typed version of Lineal. Vectorial (as well as Lineal) has been originally designed for quantum computing, as an extension to System F where linear combinations of lambda terms are also terms and linear combinations of types are also types. In its first presentation, Vectorial only provides a weakened version of the Subject Reduction property. We prove t… ▽ More
Submitted 14 May, 2021; v1 submitted 7 July, 2020; originally announced July 2020.
Comments: Long version with detailed proofs
-
arXiv:2002.07944 [pdf, ps, other]
Functional Pearl: The Distributive $λ$-Calculus
Abstract: We introduce a simple extension of the $λ$-calculus with pairs---called the distributive $λ$-calculus---obtained by adding a computational interpretation of the valid distributivity isomorphism $A \Rightarrow (B\wedge C)\ \ \equiv\ \ (A\Rightarrow B) \wedge (A\Rightarrow C)$ of simple types. We study the calculus both as an untyped and as a simply typed setting. Key features of the untyped calculu… ▽ More
Submitted 29 July, 2020; v1 submitted 18 February, 2020; originally announced February 2020.
Comments: 17 pages. Accepted at FLOPS 2020
Journal ref: LNCS 12073:13-32, 2020
-
arXiv:2002.03762 [pdf, ps, other]
Extensional proofs in a propositional logic modulo isomorphisms
Abstract: System I is a proof language for a fragment of propositional logic where isomorphic propositions, such as $A\wedge B$ and $B\wedge A$, or $A\Rightarrow(B\wedge C)$ and $(A\Rightarrow B)\wedge(A\Rightarrow C)$ are made equal. System I enjoys the strong normalization property. This is sufficient to prove the existence of empty types, but not to prove the introduction property (every closed term in n… ▽ More
Submitted 30 August, 2023; v1 submitted 10 February, 2020; originally announced February 2020.
Comments: 29 pages
MSC Class: 03F05; 03B40; 03B38
Journal ref: Theoretical Computer Science 977:114172, 2023
-
arXiv:1911.11247 [pdf, ps, other]
Runtime Analysis of Quantum Programs: A Formal Approach
Abstract: In this abstract we study the resource consumption of quantum programs. Specifically, we focus on the expected runtime of programs and, inspired by recent methods for probabilistic programs, we develop a calculus à la weakest precondition to formally and systematically derive the (exact) expected runtime of quantum programs. Notably, the calculus admits a notion of loop runtime invariant that can… ▽ More
Submitted 27 December, 2019; v1 submitted 25 November, 2019; originally announced November 2019.
Comments: Accepted at PLanQC 2020
-
arXiv:1905.01305 [pdf, ps, other]
A categorical construction for the computational definition of vector spaces
Abstract: Lambda-S is an extension to first-order lambda calculus unifying two approaches of non-cloning in quantum lambda-calculi. One is to forbid duplication of variables, while the other is to consider all lambda-terms as algebraic linear functions. The type system of Lambda-S has a constructor S such that a type A is considered as the base of a vector space while S(A) is its span. Lambda-S can also be… ▽ More
Submitted 11 April, 2020; v1 submitted 4 May, 2019; originally announced May 2019.
Comments: 39 pages. Applied Categorical Structures (2020). arXiv admin note: text overlap with arXiv:1806.09236
Journal ref: Applied Categorical Structures 28(5):807-844, 2020
-
arXiv:1904.08785 [pdf, ps, other]
Realizability in the Unitary Sphere
Abstract: In this paper we present a semantics for a linear algebraic lambda-calculus based on realizability. This semantics characterizes a notion of unitarity in the system, answering a long standing issue. We derive from the semantics a set of ty** rules for a simply-typed linear algebraic lambda-calculus, and show how it extends both to classical and quantum lambda-calculi.
Submitted 18 April, 2019; originally announced April 2019.
Comments: 28 pages
Journal ref: Proceedings of the 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS 2019)
-
arXiv:1807.05385 [pdf, ps, other]
Classically Time-Controlled Quantum Automata: Definition and Properties
Abstract: In this paper, we introduce classically time-controlled quantum automata or CTQA, which is a reasonable modification of Moore-Crutchfield quantum finite automata that uses time-dependent evolution and a "scheduler" defining how long each Hamiltonian will run. Surprisingly enough, time-dependent evolution provides a significant change in the computational power of quantum automata with respect to a… ▽ More
Submitted 29 September, 2022; v1 submitted 14 July, 2018; originally announced July 2018.
Comments: Long revisited version of LNCS 11324:266-278, 2018 (TPNC 2018)
MSC Class: 68Q05; 68Q45; 81P68 ACM Class: F.1.1
-
A concrete model for a typed linear algebraic lambda calculus
Abstract: We give an adequate, concrete, categorical-based model for Lambda-S, which is a typed version of a linear-algebraic lambda calculus, extended with measurements. Lambda-S is an extension to first-order lambda calculus unifying two approaches of non-cloning in quantum lambda-calculi: to forbid duplication of variables, and to consider all lambda-terms as algebraic linear functions. The type system o… ▽ More
Submitted 11 October, 2023; v1 submitted 24 June, 2018; originally announced June 2018.
Comments: Extended revisited version of ENTCS 344:83-100, 2018
Journal ref: Mathematical Structures in Computer Science 34(1):1-44, 2023
-
arXiv:1708.03536 [pdf, ps, other]
Confluence in Probabilistic Rewriting
Abstract: Driven by the interest of reasoning about probabilistic programming languages, we set out to study a notion of unicity of normal forms for them. To provide a tractable proof method for it, we define a property of distribution confluence which is shown to imply the desired uniqueness (even for infinite sequences of reduction) and further properties. We then carry over several criteria from the clas… ▽ More
Submitted 30 April, 2018; v1 submitted 11 August, 2017; originally announced August 2017.
Comments: LSFA 2017 Final version
Journal ref: ENTCS 338:115-131, 2018
-
arXiv:1705.00097 [pdf, ps, other]
A lambda calculus for density matrices with classical and probabilistic controls
Abstract: In this paper we present two flavors of a quantum extension to the lambda calculus. The first one, $λ_ρ$, follows the approach of classical control/quantum data, where the quantum data is represented by density matrices. We provide an interpretation for programs as density matrices and functions upon them. The second one, $λ_ρ^\circ$, take advantage of the density matrices presentation in order to… ▽ More
Submitted 20 November, 2017; v1 submitted 28 April, 2017; originally announced May 2017.
Comments: This version includes a 11-pages appendix with proofs, and a small fix in the definition of property P(b,A)
Journal ref: LNCS 10695:448-467 (APLAS 2017)
-
arXiv:1702.02274 [pdf, ps, other]
Retractions in Intersection Types
Abstract: This paper deals with retraction - intended as isomorphic embedding - in intersection types building left and right inverses as terms of a lambda calculus with a bottom constant. The main result is a necessary and sufficient condition two strict intersection types must satisfy in order to assure the existence of two terms showing the first type to be a retract of the second one. Moreover, the… ▽ More
Submitted 7 February, 2017; originally announced February 2017.
Comments: In Proceedings ITRS 2016, arXiv:1702.01874
ACM Class: F.4.1, Lambda calculus and related systems, D.3.3, Polymorphism
Journal ref: EPTCS 242, 2017, pp. 31-47
-
arXiv:1602.04732 [pdf, ps, other]
Affine computation and affine automaton
Abstract: We introduce a quantum-like classical computational model, called affine computation, as a generalization of probabilistic computation. After giving the basics of affine computation, we define affine finite automata (AfA) and compare it with quantum and probabilistic finite automata (QFA and PFA, respectively) with respect to three basic language recognition modes. We show that, in the cases of bo… ▽ More
Submitted 26 February, 2016; v1 submitted 15 February, 2016; originally announced February 2016.
Comments: 23 pages. New results were added. Accepted to CSR2016!
Journal ref: LNCS 9691:146-160, 2016
-
arXiv:1601.04294 [pdf, ps, other]
Two linearities for quantum computing in the lambda calculus
Abstract: We propose a way to unify two approaches of non-cloning in quantum lambda-calculi: logical and algebraic linearities. The first approach is to forbid duplicating variables, while the second is to consider all lambda-terms as algebraic-linear functions. We illustrate this idea by defining a quantum extension of first-order simply-typed lambda-calculus, where the type is linear on superposition, whi… ▽ More
Submitted 31 July, 2019; v1 submitted 17 January, 2016; originally announced January 2016.
Comments: Long journal version of TPNC'17 paper (doi:10.1007/978-3-319-71069-3_22) extended with third author's "Licenciatura"'s thesis
Journal ref: Biosystems Volume 186, December 2019, 104012. Post proceedings of TPNC'17
-
arXiv:1511.09324 [pdf, ps, other]
Isomorphisms considered as equalities: Projecting functions and enhancing partial application through and implementation of lambda+
Abstract: We propose an implementation of lambda+, a recently introduced simply typed lambda-calculus with pairs where isomorphic types are made equal. The rewrite system of lambda+ is a rewrite system modulo an equivalence relation, which makes its implementation non-trivial. We also extend lambda+ with natural numbers and general recursion and use Bekić's theorem to split mutual recursions. This splitting… ▽ More
Submitted 11 February, 2016; v1 submitted 30 November, 2015; originally announced November 2015.
Comments: A prototype writen in Haskell can be found at http://diaz-caro.web.unq.edu.ar/IsoAsEq-v1.0.tar.gz
ACM Class: F.4.1
Journal ref: ACM Proceedings of IFL'15(9), 2015
-
Proof Normalisation in a Logic Identifying Isomorphic Propositions
Abstract: We define a fragment of propositional logic where isomorphic propositions, such as $A\land B$ and $B\land A$, or $A\Rightarrow (B\land C)$ and $(A\Rightarrow B)\land(A\Rightarrow C)$ are identified. We define System I, a proof language for this logic, and prove its normalisation and consistency.
Submitted 22 April, 2019; v1 submitted 25 January, 2015; originally announced January 2015.
Journal ref: 4th International Conference on Formal Structures for Computation and Deduction (FSCD 2019) - LIPIcs 131:14, 2019
-
arXiv:1404.0081 [pdf, ps, other]
The probability of non-confluent systems
Abstract: We show how to provide a structure of probability space to the set of execution traces on a non-confluent abstract rewrite system, by defining a variant of a Lebesgue measure on the space of traces. Then, we show how to use this probability space to transform a non-deterministic calculus into a probabilistic one. We use as example Lambda+, a recently introduced calculus defined through type isomor… ▽ More
Submitted 31 March, 2014; originally announced April 2014.
Comments: In Proceedings DCM 2013, arXiv:1403.7685
Journal ref: EPTCS 144, 2014, pp. 1-15
-
arXiv:1312.4507 [pdf, ps, other]
Call-by-value non-determinism in a linear logic type discipline
Abstract: We consider the call-by-value lambda-calculus extended with a may-convergent non-deterministic choice and a must-convergent parallel composition. Inspired by recent works on the relational semantics of linear logic and non-idempotent intersection types, we endow this calculus with a type system based on the so-called Girard's second translation of intuitionistic logic into linear logic. We prove t… ▽ More
Submitted 16 December, 2013; originally announced December 2013.
Journal ref: Logical Foundations of Computer Science 7734 (2013) 164-178
-
arXiv:1308.1138 [pdf, ps, other]
The Vectorial $λ$-Calculus
Abstract: We describe a type system for the linear-algebraic $λ$-calculus. The type system accounts for the linear-algebraic aspects of this extension of $λ$-calculus: it is able to statically describe the linear combinations of terms that will be obtained when reducing the programs. This gives rise to an original type theory where types, in the same way as terms, can be superposed into linear combinations.… ▽ More
Submitted 17 April, 2017; v1 submitted 5 August, 2013; originally announced August 2013.
Comments: Long and corrected version of arXiv:1012.4032 (EPTCS 88:1-15), to appear in Information and Computation
Journal ref: Information and computation 254(1):105-139, 2017
-
Normalisation of a Non-deterministic Type Isomorphic λ-calculus
Abstract: We provide a proof of strong normalisation for lambda+, a recently introduced, explicitly typed, non-deterministic lambda-calculus where isomorphic propositions are identified. Such a proof is a non-trivial adaptation of the reducibility candidates technique.
Submitted 8 January, 2014; v1 submitted 21 June, 2013; originally announced June 2013.
Comments: This paper has been withdrawn by the authors due to a crucial error in Definition 1
-
arXiv:1303.7334 [pdf, ps, other]
Non determinism through type isomorphism
Abstract: We define an equivalence relation on propositions and a proof system where equivalent propositions have the same proofs. The system obtained this way resembles several known non-deterministic and algebraic lambda-calculi.
Submitted 29 March, 2013; originally announced March 2013.
Comments: In Proceedings LSFA 2012, arXiv:1303.7136
Journal ref: EPTCS 113, 2013, pp. 137-144
-
arXiv:1102.0749 [pdf, ps, other]
Confluence via strong normalisation in an algebraic λ-calculus with rewriting
Abstract: The linear-algebraic lambda-calculus and the algebraic lambda-calculus are untyped lambda-calculi extended with arbitrary linear combinations of terms. The former presents the axioms of linear algebra in the form of a rewrite system, while the latter uses equalities. When given by rewrites, algebraic lambda-calculi are not confluent unless further restrictions are added. We provide a type system f… ▽ More
Submitted 28 March, 2012; v1 submitted 3 February, 2011; originally announced February 2011.
Comments: In Proceedings LSFA 2011, arXiv:1203.5423
Journal ref: EPTCS 81, 2012, pp. 16-29
-
A Type System for the Vectorial Aspect of the Linear-Algebraic Lambda-Calculus
Abstract: We describe a type system for the linear-algebraic lambda-calculus. The type system accounts for the part of the language emulating linear operators and vectors, i.e. it is able to statically describe the linear combinations of terms resulting from the reduction of programs. This gives rise to an original type theory where types, in the same way as terms, can be superposed into linear combinations… ▽ More
Submitted 30 July, 2012; v1 submitted 17 December, 2010; originally announced December 2010.
Comments: In Proceedings DCM 2011, arXiv:1207.6821
Journal ref: EPTCS 88, 2012, pp. 1-15
-
arXiv:1011.3542 [pdf, ps, other]
Linearity in the non-deterministic call-by-value setting
Abstract: We consider the non-deterministic extension of the call-by-value lambda calculus, which corresponds to the additive fragment of the linear-algebraic lambda-calculus. We define a fine-grained type system, capturing the right linearity present in such formalisms. After proving the subject reduction and the strong normalisation properties, we propose a translation of this calculus into the System F w… ▽ More
Submitted 15 June, 2012; v1 submitted 15 November, 2010; originally announced November 2010.
Comments: 15 pages. To appear in WoLLIC 2012
Journal ref: Lecture Notes in Computer Science 7456, 216-231 (2012)
-
arXiv:1005.2897 [pdf, ps, other]
Call-by-value, call-by-name and the vectorial behaviour of the algebraic λ-calculus
Abstract: We examine the relationship between the algebraic lambda-calculus, a fragment of the differential lambda-calculus and the linear-algebraic lambda-calculus, a candidate lambda-calculus for quantum computation. Both calculi are algebraic: each one is equipped with an additive and a scalar-multiplicative structure, and their set of terms is closed under linear combinations. However, the two languages… ▽ More
Submitted 9 December, 2014; v1 submitted 17 May, 2010; originally announced May 2010.
Journal ref: Logical Methods in Computer Science, Volume 10, Issue 4 (December 9, 2014) lmcs:927
-
arXiv:0903.3741 [pdf, ps, other]
A System F accounting for scalars
Abstract: The Algebraic lambda-calculus and the Linear-Algebraic lambda-calculus extend the lambda-calculus with the possibility of making arbitrary linear combinations of terms. In this paper we provide a fine-grained, System F-like type system for the linear-algebraic lambda-calculus. We show that this "scalar" type system enjoys both the subject-reduction property and the strong-normalisation property, o… ▽ More
Submitted 28 February, 2012; v1 submitted 22 March, 2009; originally announced March 2009.
ACM Class: F.4.1
Journal ref: Logical Methods in Computer Science, Volume 8, Issue 1 (February 27, 2012) lmcs:846
-
Measurements and confluence in quantum lambda calculi with explicit qubits
Abstract: This paper demonstrates how to add a measurement operator to quantum lambda-calculi. A proof of the consistency of the semantics is given through a proof of confluence presented in a sufficiently general way to allow this technique to be used for other languages. The method described here may be applied to probabilistic rewrite systems in general, and to add measurement to more complex languages… ▽ More
Submitted 4 January, 2010; v1 submitted 15 June, 2008; originally announced June 2008.
Comments: 15 pages. Minor changes: final proceedings version. To appear ENTCS: Proceedings of QPL V - DCV IV, Reykjavik, Iceland, 2008
Journal ref: Electronic Notes in Theoretical Computer Science, 270(1):59-74, 2011. Proceedings of the Joint 5th International Workshop on Quantum Physics and Logic and 4th Workshop on Developments in Computational Models (QPL/DCM 2008)
-
A Discussion on the Teleportation Protocol for States of N Qubits
Abstract: In this paper, we want to present a simple and comprehensive method to implement teleportation of a system of N qubits and its discussion on the corresponding quantum circuit. The paper can be read for nonspecialists in quantum information.
Submitted 12 October, 2005; v1 submitted 2 May, 2005; originally announced May 2005.
Comments: 17 pages, 1 figure