Open jasonlarkin opened 1 year ago
I am able to run the compiler on the tests/swap_test.qasm
% ./target/release/inqcc ./tests/swap_test.qasm -o ./tests/test.inq --config ./config/2x8x1-linear.json --strategy telegate-only --metrics ./tests/metrics.test --timestamp ./tests/timestamp.timestamp
% cat ./tests/test.inq
0 {
world = open[0,1,2,3,4,5,6,7];
q0 = init();
q1 = init();
_cq0 = genEnt[1](l0);
CX q0 _cq0;
_m0 = measure _cq0;
free _cq0;
send[1](world, l1:_m0);
recv(world, l1_2:_m1);
Z[_m1] q0;
_cq3 = genEnt[1](l2);
CX _cq3 q0;
H _cq3;
_m2 = measure _cq3;
free _cq3;
send[1](world, l3_2:_m2);
recv(world, l3:_m3);
X[_m3] q0;
c0 = measure q0;
c1 = measure q1;
}
1 {
world = open[0,1,2,3,4,5,6,7];
q2 = init();
_cq1 = genEnt[0](l0);
CX _cq1 q2;
H _cq1;
_m4 = measure _cq1;
free _cq1;
send[0](world, l1_2:_m4);
recv(world, l1:_m5);
X[_m5] q2;
_cq2 = genEnt[0](l2);
CX q2 _cq2;
_m6 = measure _cq2;
free _cq2;
send[0](world, l3:_m6);
recv(world, l3_2:_m7);
Z[_m7] q2;
c2 = measure q2;
}
2 {
world = open[0,1,2,3,4,5,6,7];
}
3 {
world = open[0,1,2,3,4,5,6,7];
}
4 {
world = open[0,1,2,3,4,5,6,7];
}
5 {
world = open[0,1,2,3,4,5,6,7];
}
6 {
world = open[0,1,2,3,4,5,6,7];
}
7 {
world = open[0,1,2,3,4,5,6,7];
I'm trying to run the run_benchmark.sh, which is looking for these examples:
But they don't seem to be found (or generated, not sure which).