Posts

Showing posts from May, 2019

Demo for the circuit processor and the effect of noise for simple quantum gates

Image
Example for spin chain and cqed model Example for spin chain and cqed model ¶ In [1]: % matplotlib inline from qutip import * from qutip.qip.models.spinchain import * from qutip.qip.models.circuitprocessor import * from qutip.qip.models.cqed import * In [2]: N = 3 qc = QubitCircuit ( N ) qc . add_gate ( "CNOT" , targets = [ 0 ], controls = [ 2 ]) Spinchain model ¶ This module takes a quantum circuit and find a pulse sequence generating the circuit with the Hamiltonian realsized by the spinchain model. It first resolves the gate into the following gates : "GLOBALPHASE", "ISWAP", "RX", "RZ" and then genearte a time-dependent hamitonian sequence consisting of $\sigma_{x}$, $\sigma_{z}$ and $\sigma_{x}\sigma_{x}+\sigma_{y}\sigma_{y}$ In [3]: lsc = LinearSpinChain ( N , correct_global_phase