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__":