0% found this document useful (0 votes)
61 views1 page

Akashgutha Qiskit - BW

This document provides a cheat sheet summary of common methods for quantum registers and circuits in QISkit. It lists methods such as add(), barrier(), cx(), cu3(), h(), and iden() for applying common quantum gates and operations. The cheat sheet is intended to help users quickly reference available methods in QISkit without needing extensive documentation. It was created by AkashGutha and last updated in April 2018.

Uploaded by

Paul Kit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views1 page

Akashgutha Qiskit - BW

This document provides a cheat sheet summary of common methods for quantum registers and circuits in QISkit. It lists methods such as add(), barrier(), cx(), cu3(), h(), and iden() for applying common quantum gates and operations. The cheat sheet is intended to help users quickly reference available methods in QISkit without needing extensive documentation. It was created by AkashGutha and last updated in April 2018.

Uploaded by

Paul Kit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy