Skip to content

Commit

Permalink
Remove the statement include "qelib1.inc"
Browse files Browse the repository at this point in the history
We don't attach this files in the the test folders. All the gates used are implemented by default. Before, they are ignore because the default mode uses only predefined gates in qutip-qip. Since the "default" mode now also take external gates if provided, an error will be raised if this file does not exist.
  • Loading branch information
BoxiLi committed Dec 9, 2023
1 parent 02d9147 commit 446b472
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion doc/source/w-state.qasm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Name of Experiment: W-state v1

OPENQASM 2.0;
include "qelib1.inc";


qreg q[3];
Expand Down
1 change: 0 additions & 1 deletion tests/qasm_files/bracket_error.qasm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
OPENQASM 2.0;
include "qelib1.inc";

qreg q[2];
creg c[4];
Expand Down
1 change: 0 additions & 1 deletion tests/qasm_files/command_error.qasm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Implementation of Deutsch algorithm with two qubits for f(x)=x
OPENQASM 2.0;
include "qelib1.inc";

qreg q[5];
creg c[5];
Expand Down
2 changes: 0 additions & 2 deletions tests/qasm_files/qasm_error.qasm
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include "qelib1.inc";

qreg q[2];
creg c[4];
gate cu1fixed (a) c,t {
Expand Down
2 changes: 1 addition & 1 deletion tests/qasm_files/qft.qasm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OPENQASM 2.0;
include "qelib1.inc";

qreg q[4];
x q[0];
x q[2];
Expand Down
1 change: 0 additions & 1 deletion tests/qasm_files/teleportation.qasm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
OPENQASM 2.0;
include "qelib1.inc";

qreg q[3];
creg c0[1];
Expand Down
1 change: 0 additions & 1 deletion tests/qasm_files/test_add.qasm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
OPENQASM 2.0;
include "qelib1.inc";

qreg q[2];
creg c[2];
Expand Down
1 change: 0 additions & 1 deletion tests/qasm_files/test_custom_gates.qasm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
OPENQASM 2.0;
include "qelib1.inc";

qreg q[2];

Expand Down
1 change: 0 additions & 1 deletion tests/qasm_files/w-state.qasm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Name of Experiment: W-state v1

OPENQASM 2.0;
include "qelib1.inc";


qreg q[4];
Expand Down
1 change: 0 additions & 1 deletion tests/qasm_files/w-state_with_comments.qasm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Name of Experiment: W-state v1

OPENQASM 2.0;
include "qelib1.inc";


qreg q[4]; // This comments also should be handled.
Expand Down

0 comments on commit 446b472

Please sign in to comment.