GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - inQWIRE/QWIRE: A quantum circuit language and formal verification tool

BranchesTags
Open more actions menu

Latest commit

 

History

498 Commits
498 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
Ancilla.v
Ancilla.v
 
 
Arithmetic.v
Arithmetic.v
 
 
Composition.v
Composition.v
 
 
Contexts.v
Contexts.v
 
 
DBCircuits.v
DBCircuits.v
 
 
Denotation.v
Denotation.v
 
 
Deutsch.v
Deutsch.v
 
 
Equations.v
Equations.v
 
 
GHZ.v
GHZ.v
 
 
HOASCircuits.v
HOASCircuits.v
 
 
HOASExamples.v
HOASExamples.v
 
 
HOASLib.v
HOASLib.v
 
 
HOASProofs.v
HOASProofs.v
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
Monad.v
Monad.v
 
 
Monoid.v
Monoid.v
 
 
Oracles.v
Oracles.v
 
 
QASM.v
QASM.v
 
 
QASMExamples.v
QASMExamples.v
 
 
QASMPrinter.v
QASMPrinter.v
 
 
README.md
README.md
 
 
SemanticLib.v
SemanticLib.v
 
 
Symmetric.v
Symmetric.v
 
 
TypeChecking.v
TypeChecking.v
 
 
UnitarySemantics.v
UnitarySemantics.v
 
 
_CoqProject
_CoqProject
 
 

Repository files navigation

QWIRE

This is a Coq implementation of the QWIRE quantum programming language, described in the following papers by Jennifer Paykin, Robert Rand, Dong-Ho Lee and Steve Zdancewic:

  • QWIRE: a core language for quantum circuits.
  • QWIRE Practice: Formal Verification of Quantum Circuits in Coq
  • ReQWIRE: Reasoning about Reversible Quantum Circuits
  • Phantom Types for Quantum Programs

Rennela and Staton's Classical Control, Quantum Circuits and Linear Logic in Enriched Category Theory provides a categorical semantics for QWIRE.

This version of QWIRE is compatible with Coq version 8.19.

This project depends on QuantumLib version 1.6.0, which you can install with:

opam pin coq-quantumlib 1.6.0 https://github.com/inQWIRE/QuantumLib.git

Run make to compile the core (preliminary and implementation) files and make all to compile proofs of QWIRE programs. Run make qasm to compile the files that convert QWIRE to QASM. We recommend using Company Coq with QWIRE in light of its support for unicode.

Files in this repository

Preliminaries

  • Monad.v : An implementation of some basic monads
  • Monoid.v : A typeclass and solver for commutative monoids, modified from LinearTypingContexts

Implementation of QWIRE

  • Contexts.v : Defines wire types and typing contexts
  • HOASCircuits.v : Defines QWIRE circuits using higher-order abstract syntax
  • DBCircuits.v : Compiling HOAS to De Bruijin style circuits
  • TypeChecking.v : Circuit notations and tactics for proving well-typedness
  • Denotation.v : Defines the denotational semantics of QWIRE circuits and proves its (quantum mechanical) validity
  • HOASLib.v : A library of basic circuits used in QWIRE programming
  • SemanticLib.v : Proves the semantic properties of HOASLib circuits
  • HOASExamples.v : Additional examples of HOAS circuits
  • Composition.v : States and admits compositionality lemmas (used in the following five files)
  • Ancilla.v : Defines the correctness of circuits using ancilla assertions
  • Symmetric.v : Syntactic conditions for guaranteeing the validity of assertions
  • Oracles.v : Compilation of boolean expressions to QWIRE circuits

Verification of QWIRE circuits

  • Arithmetic.v : Verification of a quantum adder
  • Deutsch.v : Variants on Deutsch's Algorithm
  • Equations.v : Equalities on small circuits
  • HOASProofs.v : Additional proofs, including coin flips and teleportation

Compilation to QASM (i.e., OpenQASM 2.0)

  • QASM.v : Compilation from QWIRE to QASM
  • QASMPrinter.v : A printer for compiled circuits, for execution on a quantum computer/simulator
  • QASMExamples.v : Examples of circuit compilation

The QWIRE project has benefited from the support of the Air Force Office of Scientific Research under the MURI grant number FA9550-16-1-0082 entitled, “Semantics, Formal Reasoning, and Tool Support for Quantum Programming” and the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, Quantum Testbed Pathfinder Program under Award Number DE-SC0019040.

About

A quantum circuit language and formal verification tool

Resources

Readme
MIT license
Activity
Custom properties

Stars

113 stars

Watchers

19 watching

Forks

28 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.