-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from PESchoenberg/develop
Improved functions.
- Loading branch information
Showing
17 changed files
with
206 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
// example10.qasm; | ||
// Compiled with g2q - v1.2.3; | ||
// Compiled with g2q - v1.2.4; | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[5]; | ||
creg c[5]; | ||
// Begin g1y; | ||
h q[0]; | ||
h q[1]; | ||
h q[2]; | ||
h q[3]; | ||
h q[4]; | ||
// End g1y; | ||
// Begin g1y; | ||
x q[0]; | ||
x q[1]; | ||
x q[2]; | ||
x q[3]; | ||
x q[4]; | ||
// End g1y; | ||
// Begin qmeasy; | ||
measure q[0] -> c[0]; | ||
measure q[1] -> c[1]; | ||
measure q[2] -> c[2]; | ||
measure q[3] -> c[3]; | ||
measure q[4] -> c[4]; | ||
// End qmeasy; | ||
// qdeclare qx-simulator error_model depolarizing_channel,0.001; | ||
// qdeclare qlib-simulator // Hello qlib-simulator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,47 @@ | ||
// example3.qasm; | ||
// Compiled with g2q - v1.2.3; | ||
// Compiled with g2q - v1.2.4; | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[5]; | ||
creg c[5]; | ||
// Begin g1y; | ||
h q[0]; | ||
h q[1]; | ||
// End g1y; | ||
// Begin g1y; | ||
s q[0]; | ||
s q[1]; | ||
// End g1y; | ||
// Begin g1cxg1; | ||
h q[0]; | ||
cx q[1],q[0]; | ||
h q[0]; | ||
// End g1cxg1; | ||
// Begin g1y; | ||
s q[0]; | ||
s q[1]; | ||
// End g1y; | ||
// Begin g1y; | ||
h q[0]; | ||
h q[1]; | ||
// End g1y; | ||
// Begin g1y; | ||
x q[0]; | ||
x q[1]; | ||
// End g1y; | ||
// Begin g1cxg1; | ||
h q[0]; | ||
cx q[1],q[0]; | ||
h q[0]; | ||
// End g1cxg1; | ||
// Begin g1y; | ||
x q[0]; | ||
x q[1]; | ||
// End g1y; | ||
// Begin g1y; | ||
h q[0]; | ||
h q[1]; | ||
// End g1y; | ||
// Measuring; | ||
measure q[0] -> c[0]; | ||
measure q[1] -> c[1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,58 @@ | ||
// example4.qasm; | ||
// Compiled with g2q - v1.2.3; | ||
// Compiled with g2q - v1.2.4; | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[5]; | ||
creg c[5]; | ||
// Begin g1y; | ||
h q[0]; | ||
h q[1]; | ||
h q[2]; | ||
h q[3]; | ||
h q[4]; | ||
// End g1y; | ||
// Begin g1xy; | ||
// Begin g1y; | ||
id q[0]; | ||
id q[1]; | ||
id q[2]; | ||
id q[3]; | ||
id q[4]; | ||
// End g1y; | ||
// Begin g1y; | ||
id q[0]; | ||
id q[1]; | ||
id q[2]; | ||
id q[3]; | ||
id q[4]; | ||
// End g1y; | ||
// Begin g1y; | ||
id q[0]; | ||
id q[1]; | ||
id q[2]; | ||
id q[3]; | ||
id q[4]; | ||
// End g1y; | ||
// Begin g1y; | ||
id q[0]; | ||
id q[1]; | ||
id q[2]; | ||
id q[3]; | ||
id q[4]; | ||
// End g1y; | ||
// Begin g1y; | ||
id q[0]; | ||
id q[1]; | ||
id q[2]; | ||
id q[3]; | ||
id q[4]; | ||
// End g1y; | ||
// End g1xy; | ||
// Measuring; | ||
// Begin qmeasy; | ||
measure q[0] -> c[0]; | ||
measure q[1] -> c[1]; | ||
measure q[2] -> c[2]; | ||
measure q[3] -> c[3]; | ||
measure q[4] -> c[4]; | ||
// End qmeasy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.