Skip to content

A simple, interpreted Quantum Programming Language.

License

Notifications You must be signed in to change notification settings

mileswatson/Qupl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub license GitHub stars GitHub issues .NET 5 Windows Linux


Quantum computing made simple.


A simple, interpreted Quantum Programming Language.
Explore the docs »

View Demo · Report Bug · Request Feature

Sample Program (Deutsch's Algorithm)

Deutsch's algorithm can be used to tell in a single pass whether a function is constant or balanced.

// A function is sequence of parallel gates

funq blackbox =
    I I         // These are both identity gates - they do nothing
    CNOT        // This gate is a CNOT - it is two qubits wide

// A let definition is starting state, which can
// be followed by a sequence of parallel gates.
let deutsch =
    0 1             // These are the initial starting states
    H H

    log "before"    // You can debug intermediate states in a 'let' expression
    blackbox
    log "after"

    H H

let main =
    deutsch

About

A simple, interpreted Quantum Programming Language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages