Created
May 15, 2020 09:50
-
-
Save gvvynplaine/1e42f48c76257ae2867016ce729ffe8c to your computer and use it in GitHub Desktop.
quantum superposition and entanglement
This file contains hidden or 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
OPENQASM 2.0; | |
include "qelib1.inc"; | |
gate nG0 ( param ) q { | |
h q; | |
} | |
gate nG1 ( param ) q { | |
h q; | |
} | |
qreg q[2]; | |
creg c[2]; | |
h q[0]; | |
cx q[0],q[1]; | |
h q[0]; | |
measure q[0] -> c[0]; | |
measure q[1] -> c[1]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment