Skip to Content.
Sympa Menu

coq-club - [Coq-Club] References of quantum toposophy in Coq (was: Why Qwire was verified precisely in Coq?)

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] References of quantum toposophy in Coq (was: Why Qwire was verified precisely in Coq?)


Chronological Thread 
  • From: José Manuel Rodríguez Caballero <josephcmac AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] References of quantum toposophy in Coq (was: Why Qwire was verified precisely in Coq?)
  • Date: Mon, 4 Feb 2019 00:40:34 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=josephcmac AT gmail.com; spf=Pass smtp.mailfrom=josephcmac AT gmail.com; spf=None smtp.helo=postmaster AT mail-it1-f182.google.com
  • Ironport-phdr: 9a23:MQ95+xN16sYFeVoCoLEl6mtUPXoX/o7sNwtQ0KIMzox0Iv3/rarrMEGX3/hxlliBBdydt6oUzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlLiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSgIOT428mHZhMJzgqxGvhyuuwdyzJTIbIyPLvdyYr/RcNEcSGFcXshRTStBAoakYoULCOoBJvxfoJH6qVQUqxu+GBejBOf3xTFUgX/5wLc61PouEQHbwgMhHsoBvWrOo9ruLqgSVeS1w7fSzTXEcvhb3jX96I/Tch8/ufGMXa5/cc/LxkYzDA7FgVCQppbkPzORzOgCr2+b7+95WO+plmUppQZxoj21ycctjInEnp8VylXZ+ilj3ok6OMC4RFZgYd68CptQtieaN4RoTcM4WW1npCE6yrgAtJWmfyYK0IwqywDDZ/GDaYSF4RLuWPyMLTp5hX9pYq+zihWs/UWm1+byTNO70ExQoSpAitTMtm4C1xjU6sWfT/ty5Eah2TKW2wDS9uFIPFk4laTGJ5Mi3LI8jJUTsUPEHi/5nEX5krWaeVkj+uit8+jnY7PmqYGAN4JslA3yLqAjlta8DOk4KAQCQmmW9OWm2LH+/kD1Xq1GjvgsnanYtJDaK94bpqm8AwJN0IYj7A2/ACm+0NQYgXYHKUhKdw6cgojmPlHBOvH4DfOlj1uwlzdrwujKPqf9DZXVMnjDjLDhcK5h5E5b0Qo/1MxQ55ZJCr4aO//zQU/wtNnADhAjKQC0wuDnCM981owEQ26PDLWZY+vutgqD4ftqKO2RbqcUviz8Ir4r/a3Al3g8zH0aZiie+JIRdX28Kc5hL18cbmfhkOAqGG0Dug4zVuui3F+FSjNLZ323VqkU6TQyCYbgBoDGENP+yIed1Tu2S8UFLltNDUqBRC+xJte0HswUYSfXGfdP1zkNVLyvUYgkjEj8uwrzyr4hJe3RqHRB6cDTkeNt7uiWrikcsCRuBp3EgW6IRmBw2GgPQm1uhf0tkQlG0l6GlJNArblYGNhUva0bVw47Mdvd07U/BYmiAETOedCGTFvgSdKjU2k8

Hi,
  Beside the argument about the advantages of dependent types for the formalization of matrices, another argument to use Coq in quantum computing may be the fact that Coq does not assume the law of excluded middle. So, I guess that Coq will be more natural in order to formalize the quantum toposophy (roughly speaking, this is a program in order to preserve the distributivity in Birkhoff-von Neumann quantum logic via topos). Here a reference to this theory:

  I would appreciate some references to repositories of quantum toposophy in Coq (or another proof assistant), if there is any. Thank you in advance.

Kind Regards,
José M.


El vie., 21 dic. 2018 a las 14:08, Robert Rand (<rrand AT seas.upenn.edu>) escribió:
Hi José,

I'd say that the reason for the choice of Coq was its dependent types for programming, rather than the power of its logic.

Dependent types allow us to define precise circuit families. Consider for instance the type signature for the quantum fourier transform from our POPL paper (http://www.cs.umd.edu/~rrand/popl_2017.pdf, section 6.2, which discusses this choice):

fourier : Π(n:Nat). CIRC(n ⨂ qubit, n ⨂ qubit)

The argument n here is both used in the QFT and precisely specifies the arity of the circuit. When taking the denotation, then, we know that the QFT takes a density matrix of size 2^n by 2^n to another matrix of the same size, which helps in verification. 

(In general, there's a pretty strong argument that matrices should be dependently typed, as the Mathematical Components/SSReflect matrices are, though in the context of QWIRE we had to make some trade-offs discussed here: http://www.cs.umd.edu/~rrand/coqpl_2018.pdf.)

We're not the first to argue for dependent types in quantum programs: The idea is present in the Quipper papers and discussed at length in Alexander Green's thesis (which also does some verification in Agda).

I'm curious, though, about prior uses of Isabelle/HOL for quantum computing. I'm only familiar with two works in that category (Liu et al's Theorem Prover for Quantum Hoare Logic and Its Applications and Unruh's Quantum Relational Hoare Logic) and both are in early stages (in terms of verification in Isabelle).

Best,
Robert


  • [Coq-Club] References of quantum toposophy in Coq (was: Why Qwire was verified precisely in Coq?), José Manuel Rodríguez Caballero, 02/04/2019

Archive powered by MHonArc 2.6.18.

Top of Page