Skip to content

Instantly share code, notes, and snippets.

@Raghav-Bell
Created May 12, 2022
Embed
What would you like to do?
BOLT meets Quantum
mybolt = Bolt(api_key, device_id)
if classical_msg=='01':
#circuit.x(0)
mybolt.digitalWrite('0','HIGH')
mybolt.digitalWrite('1','LOW')
elif classical_msg=='10':
#circuit.z(0)
mybolt.digitalWrite('0','LOW')
mybolt.digitalWrite('1','HIGH')
elif classical_msg=='11':
#circuit.z(0)
#circuit.x(0)
mybolt.digitalWrite('0','HIGH')
mybolt.digitalWrite('1','HIGH')
else:
#circuit.i(0)
mybolt.digitalWrite('0','LOW')
mybolt.digitalWrite('1','LOW')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment