Skip to content

Instantly share code, notes, and snippets.

View tedtanne's full-sized avatar

Ted Tanner Jr. tedtanne

View GitHub Profile
# Create a Quantum Circuit acting on the q register
circuit = QuantumCircuit(2, 2)
Add a H gate on qubit 0
circuit.h(0)
# Add a CX (CNOT) gate on control qubit 0 and target qubit 1
circuit.cx(0, 1)
# Map the quantum measurement to the classical bits
circuit.measure([0,1], [0,1])
#Execute Phase:
#Use Aer's qasm_simulator

Keybase proof

I hereby claim:

  • I am tedtanne on github.
  • I am tctjr (https://keybase.io/tctjr) on keybase.
  • I have a public key ASB-SLr8zB_hdVTkBa2w5OZCrH59xuZFdJIMBOeTprKDaAo

To claim this, I am signing this object: