Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chapter07/cirq/superdense-coding-cirq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down