Skip to content

Instantly share code, notes, and snippets.

@Raghav-Bell
Created May 12, 2022 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raghav-Bell/e0de1f2685b6850479465f577d24ff55 to your computer and use it in GitHub Desktop.
Save Raghav-Bell/e0de1f2685b6850479465f577d24ff55 to your computer and use it in GitHub Desktop.
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