Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New file format #5

Open
aparent opened this issue Sep 19, 2012 · 0 comments
Open

New file format #5

aparent opened this issue Sep 19, 2012 · 0 comments
Labels

Comments

@aparent
Copy link
Owner

aparent commented Sep 19, 2012

-Add circuit descriptions/authors to the .qc format
-better input output specification

Change the .qc file format into something like this (while keeping support for the old format):

VERSION "1.0"

IMPORT carrySelect FROM "adder.qc"

BEGIN test (a b c)
  BEGIN HEADER
    Author = "blah"
    Description = "Blah"
    foo = "bar"
  END HEADER
  BEGIN BITINFO
    INLABELS a : ain , b : stuff
    OUTLABELS a : aout , c : garbage
    INIT a : |0>+|1> , c b : |00> + |11>
  END BITINFO
  BEGIN GATES
    H a
    toff b c
    :NEWBIT n
    toff b n
    toff b n
    :FREE n
  END GATES
END test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant