Skip to content

Commit

Permalink
Modifications to GenQASM to support RKQC output
Browse files Browse the repository at this point in the history
  • Loading branch information
ah744 committed Jul 14, 2016
1 parent 141cd3d commit ba74577
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 641 deletions.
18 changes: 18 additions & 0 deletions Algorithms/RKQC_Testing/rkqc_test.scaffold
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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;
}
Loading

0 comments on commit ba74577

Please sign in to comment.