Created
February 21, 2022 00:08
-
-
Save Israel-Miles/96bf72fa98fe3f7f951b3a19b8bec791 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build a quantum circuit | |
circuit = QuantumCircuit(3, 3) | |
circuit.x(1) | |
circuit.h(range(3)) | |
circuit.cx(0, 1) | |
circuit.measure(range(3), range(3)); | |
# Print the circuit | |
circuit.draw() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment