https://github.com/epiqc/ScaffCC
Raw File
Tip revision: 1b57c8e01a682145f576e101c868ba84ea38ec1b authored by ah744 on 06 August 2016, 01:41:28 UTC
Fixed Rotation Decomposition Naming and BF Type Mismatch
Tip revision: 1b57c8e
rkqc_test.scaffold
rkqc reverseBits32(qint a[32]){
    zero_to_garbage ancilla[32];
    int i;
    for (i=0;i<32;i++){
//        assign_value_of_b_to_a(ancilla[32-i-1],a[i],1);
        NOT(a[i]);
        toffoli(a[i%4],a[i],ancilla[i]);
    }
}
rkqc encrypt(){
    qbit h0[32];
    reverseBits32(h0);
}   

int main() {
    encrypt();
    return 0;
}
back to top