qit.examples

Demos and examples

This module contains various examples which demonstrate the features of QIT. The tour function is a “guided tour” to the toolkit which runs all the demos in succession.

Demos

adiabatic_qc_3sat([n, n_clauses, clauses, …])

Adiabatic quantum computing demo.

bb84([n])

Bennett-Brassard 1984 quantum key distribution protocol demo.

bernstein_vazirani([n, linear])

Bernstein-Vazirani algorithm demo.

grover_search([n])

Grover search algorithm demo.

markov_decoherence([T1, T2, B])

Markovian decoherence demo.

nmr_sequences([seqs, strength_error])

NMR control sequences demo.

phase_estimation_precision(t, U[, u])

Quantum phase estimation demo.

qft_circuit([dim])

Quantum Fourier transform circuit demo.

quantum_channels([p])

Visualization of simple one-qubit channels.

quantum_walk([steps, n, p, n_coin])

Quantum random walk demo.

qubit_and_resonator([d_r])

Qubit coupled to a microwave resonator demo.

shor_factorization([N, cheat])

Shor’s factorization algorithm demo.

superdense_coding([d])

Superdense coding demo.

teleportation([d])

Quantum teleportation demo.

werner_states([d])

Werner and isotropic states demo.

markovian_bath_properties()

Markovian bath properties demo.

tour()

Guided tour to the quantum information toolkit.

General-purpose quantum algorithms

adiabatic_qc(H0, H1, s0[, tmax])

Adiabatic quantum computing.

phase_estimation(t, U, s[, implicit])

Quantum phase estimation algorithm.

find_order(a, N[, epsilon])

Quantum order-finding subroutine.

Functions

adiabatic_qc(H0, H1, s0[, tmax])

Adiabatic quantum computing.

adiabatic_qc_3sat([n, n_clauses, clauses, …])

Adiabatic quantum computing demo.

bb84([n])

Bennett-Brassard 1984 quantum key distribution protocol demo.

bernstein_vazirani([n, linear])

Bernstein-Vazirani algorithm demo.

find_order(a, N[, epsilon])

Quantum order-finding subroutine.

grover_search([n])

Grover search algorithm demo.

markov_decoherence([T1, T2, B])

Markovian decoherence demo.

markovian_bath_properties()

Markovian bath properties demo.

nmr_sequences([seqs, strength_error])

NMR control sequences demo.

phase_estimation(t, U, s[, implicit])

Quantum phase estimation algorithm.

phase_estimation_precision(t, U[, u])

Quantum phase estimation demo.

qft_circuit([dim])

Quantum Fourier transform circuit demo.

quantum_channels([p])

Visualization of simple one-qubit channels.

quantum_walk([steps, n, p, n_coin])

Quantum random walk demo.

qubit_and_resonator([d_r])

Qubit coupled to a microwave resonator demo.

shor_factorization([N, cheat])

Shor’s factorization algorithm demo.

superdense_coding([d])

Superdense coding demo.

teleportation([d])

Quantum teleportation demo.

tour()

Guided tour to the quantum information toolkit.

werner_states([d])

Werner and isotropic states demo.