Skip to content

Commit

Permalink
Removed triling whitespace in qasm files
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Gheorghiu <[email protected]>
  • Loading branch information
vsoftco committed Sep 6, 2024
1 parent 9f8cdaf commit cc74be6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
20 changes: 10 additions & 10 deletions qasmtools/qasm/generic/adder.qasm
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// quantum ripple-carry adder from Cuccaro et al, quant-ph/0410184
OPENQASM 2.0;
include "qelib1.inc";
gate majority a,b,c
{
cx c,b;
cx c,a;
ccx a,b,c;
gate majority a,b,c
{
cx c,b;
cx c,a;
ccx a,b,c;
}
gate unmaj a,b,c
{
ccx a,b,c;
cx c,a;
cx a,b;
gate unmaj a,b,c
{
ccx a,b,c;
cx c,a;
cx a,b;
}
qreg cin[1];
qreg a[4];
Expand Down
22 changes: 11 additions & 11 deletions qasmtools/qasm/generic/bigadder.qasm
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
// Cuccaro et al, quant-ph/0410184
OPENQASM 2.0;
include "qelib1.inc";
gate majority a,b,c
{
cx c,b;
cx c,a;
ccx a,b,c;
gate majority a,b,c
{
cx c,b;
cx c,a;
ccx a,b,c;
}
gate unmaj a,b,c
{
ccx a,b,c;
cx c,a;
cx a,b;
gate unmaj a,b,c
{
ccx a,b,c;
cx c,a;
cx a,b;
}

// add a to b, storing result in b
gate add4 a0,a1,a2,a3,b0,b1,b2,b3,cin,cout
gate add4 a0,a1,a2,a3,b0,b1,b2,b3,cin,cout
{
majority cin,b0,a0;
majority a0,b1,a1;
Expand Down
8 changes: 4 additions & 4 deletions qasmtools/qasm/generic/qec.qasm
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ qreg q[3];
qreg a[2];
creg c[3];
creg syn[2];
gate syndrome d1,d2,d3,a1,a2
{
cx d1,a1; cx d2,a1;
cx d2,a2; cx d3,a2;
gate syndrome d1,d2,d3,a1,a2
{
cx d1,a1; cx d2,a1;
cx d2,a2; cx d3,a2;
}
x q[0]; // error
barrier q;
Expand Down
2 changes: 1 addition & 1 deletion qasmtools/qasm/generic/qft.qasm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ OPENQASM 2.0;
include "qelib1.inc";
qreg q[4];
creg c[4];
x q[0];
x q[0];
x q[2];
barrier q;
h q[0];
Expand Down
2 changes: 1 addition & 1 deletion qasmtools/qasm/ibmqx2/W3test.qasm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Name of Experiment: W3test v1
// example of W-state |001> + |010> + |100>
// example of W-state |001> + |010> + |100>
// found by user lukasknips at http://ibm.biz/qiskit-W3-Example

OPENQASM 2.0;
Expand Down

0 comments on commit cc74be6

Please sign in to comment.