From de00aaac47de9988f5a47458427b77d94822c100 Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Wed, 4 Dec 2019 22:11:23 +0100 Subject: [PATCH] show the measure of dense coding --- 05_dense_coding.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/05_dense_coding.py b/05_dense_coding.py index 23616e9..cfa6b05 100644 --- a/05_dense_coding.py +++ b/05_dense_coding.py @@ -33,21 +33,22 @@ def quantum_dense_coding(): print() print("Bob measures...") - print("00") m00 = H.on(CNOT.on(_00)[0]) + print(m00.measure()) print(m00) print() - print("01") m01 = H.on(CNOT.on(_01)[0]) + print(m01.measure()) print(m01) print() - print("10") m10 = H.on(CNOT.on(_10)[0]) + print(m10.measure()) print(m10) print() - print("11") m11 = H.on(CNOT.on(_11)[0]) + print(m11.measure()) print(m11) + print() if __name__ == "__main__":