Professional Documents
Culture Documents
Lecture-7-iSWAP-gate.ipynb (/github/jrjohansson/qutip-lectures/tree/master/Lecture-7-iSWAP-gate.ipynb) /
Introduction
Let's consider a simple protocol for implementing the two-qubit iSWAP gate: During a time
T = /4g , the qubits are subject to the coupling Hamiltonian
H = g ( x x + y y )
where g is the coupling strength. Under ideal conditions this coupling realizes the i -SWAP gate
between the two qubit states.
Here we will solve for the dynamics of the two qubits subject to this Hamiltonian, and look at the
deterioating effects of adding decoherence. We will use process tomography to visualize the gate.
Parameters
(http://www.webspades.info/review#ata)
WebSpades Ads
by SavePass X
1.1-p/index.html?
Ads by SavePass
M9Z3JlZW4mbz13c2FyJmQ9JnQ9JmE9OTcwMCZzPTEwMDgmdz1uYnZpZXdlci5pcHl0aG9uLm9yZyZvb3U9aHR0cDovL2dscy52YXN0Z2xvd3MuY29tL29wdF9vdXQvMyZiPWJkMiZyZD0mcmk9)
T = pi/(4*g)
Collapse operators
Define a list of collapse operators that describe the coupling of the qubits to their environment
(assumed to be uncorrelated)
In [5]: c_ops = []
/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/axes3d.py:1673: RuntimeWar
ning: invalid value encountered in true_divide
for n in normals])
/usr/lib/python3/dist-packages/matplotlib/colors.py:395: RuntimeWarning: inval
id value encountered in greater
if (c.ravel() > 1).any() or (c.ravel() < 0).any():
/usr/lib/python3/dist-packages/matplotlib/colors.py:395: RuntimeWarning: inval
id value encountered in less
if (c.ravel() > 1).any() or (c.ravel() < 0).any():
Dissipative evolution
In [13]: # calculate the process tomography chi matrix for the dissipative propagator
chi = qpt(U_diss, op_basis)
1.1-p/index.html?
Ads by SavePass
M9Z3JlZW4mbz13c2FyJmQ9JnQ9JmE9OTcwMCZzPTEwMDgmdz1uYnZpZXdlci5pcHl0aG9uLm9yZyZvb3U9aHR0cDovL2dscy52YXN0Z2xvd3MuY29tL29wdF9vdXQvMyZiPWJkMiZyZD0mcmk9)
Software versions:
version_table()
Out[15]:
Software Version
IPython 2.0.0
Numpy 1.8.1
matplotlib 1.3.1
Cython 0.20.1post0
SciPy 0.13.3
OS posix [linux]
QuTiP 3.0.0.dev-5a88aa8
1.1-p/index.html?
Ads by SavePass
M9Z3JlZW4mbz13c2FyJmQ9JnQ9JmE9OTcwMCZzPTEwMDgmdz1uYnZpZXdlci5pcHl0aG9uLm9yZyZvb3U9aHR0cDovL2dscy52YXN0Z2xvd3MuY29tL29wdF9vdXQvMyZiPWJkMiZyZD0mcmk9)