Skip to content

New file format #5

@aparent

Description

@aparent

-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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions