Akashgutha Qiskit - BW

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

QISkit Cheat Sheet

by AkashGutha via cheatography.com/58131/cs/15378/

Quantu​mRe​gister

qasm Return OPENQASM string for this register

check_​ran​ge(j) Check that j is a valid index into self

Quantu​mCi​rcuit

add( *regs ) add registers

barrier( *tuples ) apply barrier to tuples


(reg, idx)

ccx( ctl1, ctl2, tgt ) apply Toffoli

ch( ctl, tgt ) apply CH from ctl to tgt

combine( rhs ) if self has rhs's regs


return self + rhs

crz( ctl, tgt ) apply crz


from ctl to tgt
with angle theta

cswap( ctl, tgt1, tgt2 ) apply Fredkin

cu1( theta, ctl, tgt ) apply cu1 from ctl to tgt


with angle theta

cu3( theta, phi, lam, ctl, tgt ) apply cu3 from ctl to tgt
with angle theta, phi, lam

cx( ctl, tgt ) apply CNOT from


ctl to tgt

cx_base( ctl, tgt ) apply CX from


ctl to tgt

cy( ctl, tgt ) apply CY from


ctl to tgt

cz( ctl, tgt ) apply CZ from


ctl to tgt

extend( rhs ) append rhs to self if


self contains rhs's registers
modify and return self

first_​ato​mic​_ga​te_​host() return the host list of


the leaf gate on the left edge

get_cr​egs() get the cregs from the registers

get_qr​egs() get the qregs from the registers

h( q ) apply H to q

has_re​gister( register ) return True or False

iden( q ) apply Identity to q

By AkashGutha Not published yet. Sponsored by Readability-Score.com


cheatography.com/akashgutha/ Last updated 4th April, 2018. Measure your website readability!
Page 1 of 1. https://readability-score.com

You might also like