Giter VIP home page Giter VIP logo

quest's People

Contributors

aniabrown avatar tysonrayjones avatar

quest's Issues

TODO: CBlock

Allow direct injection of C Code into QASM with the syntax:
CBLOCK { body }

TODO: Recursive gates

Allow recursion in gates with the syntax:

rgate name(params) qargs { 
<body>
if (<cond>) exit
}

Inline if

Handle if statements with syntax:
if (cond) op ;

TODO: if

Handle conditionals with the syntax:
if(creg==int) qop;
or
if(creg==int) {body}

TODO: Reset

Handle re-initialising qubit registers into |0> state
reset qubit|qreg;

Add verbose

Verbose should print a comment of the input QASM line for double checking accuracy

TODO: Aliasing

Add ability to alias registers (quantum or otherwise) with the syntax:

alias a[1:5] -> b[3:8]

TODO: Include

Handle inclusion of other QASM files with syntax:
include '<filename>'

TODO: Partition

Add ability to partition a register into subregisters with the syntax:

partition a[:] -> x[5], y[5], z[:]

TODO: Measurement

Handle measurement of gates into real registers
measure qubit|qreg -> bit|creg;

TODO: Handle QASM versioning

Handle parsing of files with versioned QASM and supported versioning with the syntax

OPENQASM <maj>.<min>;
OAQEQASM <maj>.<min>;

TODO: PyBlock

Allow direct injection of Python code into QASM with syntax:
PYBLOCK {body}

Let for constants

Add a define constants function. Constants can be functions of other things but never redeclared with a syntax:
let x = 5

Inline comments

Handle inline comments properly with syntax:
op // Comment

TODO: for loop

Add parsing for loop in syntax:

for i in [a:b] do {
<block>
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.