From: a Date: Sat, 14 Dec 2024 06:24:10 +0000 (-0500) Subject: Sat 14 Dec 2024 01:24:10 AM EST X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=232db76d8e936fcbca5c1a31c50b9b896db248f5;p=QAnsel.git Sat 14 Dec 2024 01:24:10 AM EST --- diff --git a/examples/superdense_coding.txt b/examples/superdense_coding.txt new file mode 100644 index 0000000..d57dd45 --- /dev/null +++ b/examples/superdense_coding.txt @@ -0,0 +1,43 @@ +qreg q[2]; + +//00 +h q[0]; +cx q[0], q[1]; +cx q[0], q[1]; +h q[0]; +born q; + +reset q[0]; +reset q[1]; + +//01 +h q[0]; +cx q[0], q[1]; +z q[0]; +cx q[0], q[1]; +h q[0]; +born q; + +reset q[0]; +reset q[1]; + +//10 +h q[0]; +cx q[0], q[1]; +x q[0]; +cx q[0], q[1]; +h q[0]; +born q; + +reset q[0]; +reset q[1]; + +//11 +h q[0]; +cx q[0], q[1]; +x q[0]; +z q[0]; +cx q[0], q[1]; +h q[0]; +born q; +