from IPython.display import IFrame

IFrame(src='./gen_plots/jaynescummings.html', width=900, height=350)

###########################################
#  Amplitude damping channel on IBMQ_VIGO #
###########################################
from qiskit import QuantumRegister, QuantumCircuit

# Quantum register
q = QuantumRegister(5, name='q')

# Quantum circuit
ad = QuantumCircuit(q)

# Amplitude damping channel acting on system qubit
## Qubit identification
system = 1
environment = 2

# Define rotation angle
theta = 0.0

# Construct circuit
ad.x(q[system])
ad.cu3(theta, 0.0, 0.0, q[system], q[environment])
ad.cx(q[environment], q[system])

# Draw circuit
ad.draw(output='mpl')