quantum/08_qiskit_tutorial.py
2020-02-01 10:46:55 +00:00

16 lines
227 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 31 14:10:59 2020
@author: kidiki
"""
from qiskit import QuantumCircuit
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0, 1], [0, 1])
print(qc)