diff --git a/chapter07/cirq/superdense-coding-cirq.py b/chapter07/cirq/superdense-coding-cirq.py index 7dc2f0d..bbe5251 100644 --- a/chapter07/cirq/superdense-coding-cirq.py +++ b/chapter07/cirq/superdense-coding-cirq.py @@ -5,7 +5,7 @@ # Helper function for visualizing output def bitstring(bits): - return ''.join('1' if e else '0' for e in bits) + return (''.join('1' if e else '0' for e in bits))[::-1] #reversed the output # Create two quantum and classical registers qreg = [cirq.LineQubit(x) for x in range(2)]