https://github.com/epiqc/ScaffCC
Revision 9d2cca71cf54ddfebda26e247d82ae7b71d9e03c authored by Pranav Gokhale on 30 June 2018, 18:56:21 UTC, committed by Pranav Gokhale on 30 June 2018, 18:56:21 UTC
1 parent 720b0db
Raw File
Tip revision: 9d2cca71cf54ddfebda26e247d82ae7b71d9e03c authored by Pranav Gokhale on 30 June 2018, 18:56:21 UTC
Fix OpenQASM output formatting of Rx and Ry
Tip revision: 9d2cca7
miscellaneous.scaffold
// This file is targetted to test gates that have are handled in special ways
// for OpenQASM generation
int main () {
    qbit qb[4];
    cbit cb[2];

    PrepZ( qb[0], 0 );
    PrepZ( qb[1], 1 );
    PrepX( qb[2], 0 );
    PrepX( qb[3], 1 );

    Fredkin( qb[0], qb[1], qb[2] );

    cb[0] = MeasX( qb[2] );
    cb[1] = MeasZ( qb[3] );

    return 0;
}
back to top