Skip to content

Commit

Permalink
Removed trailing whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Gheorghiu <vsoftco@gmail.com>
  • Loading branch information
vsoftco committed Sep 6, 2024
1 parent 3f10448 commit ab42a64
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
20 changes: 10 additions & 10 deletions 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 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 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 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 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 ab42a64

Please sign in to comment.