QuantumCore

Hands-on lab · 2 steps

Amplitude damping, T1 decay and engineered dephasing

Compute the energy-relaxation probability γ=1−e−t/T1\gamma=1-e^{-t/T_1} of an idling qubit and its surviving excited population, then build a one-qubit noisy circuit that prepares the mixed state ρ=(0.50.30.30.5)\rho=\begin{pmatrix}0.5&0.3\\0.3&0.5\end{pmatrix} from ∣0⟩\lvert0\rangle with one gate and noise channels simulated on the density-matrix backend.

0/2 steps passedBest score 0/100

Step 1: Energy relaxation of an idling qubit

A qubit is prepared in ∣1⟩\lvert1\rangle and then idles for t=10 μst=10\,\mu\mathrm s. Its energy-relaxation time is T1=50 μsT_1=50\,\mu\mathrm s and there is no additional pure dephasing (T2=2T1T_2=2T_1). Over the idle period the qubit undergoes the amplitude-damping channel

ρ↦K0ρK0†+K1ρK1†,K0=(1001−γ),K1=(0γ00).\rho\mapsto K_0\rho K_0^\dagger+K_1\rho K_1^\dagger,\qquad K_0=\begin{pmatrix}1&0\\0&\sqrt{1-\gamma}\end{pmatrix},\quad K_1=\begin{pmatrix}0&\sqrt\gamma\\0&0\end{pmatrix}.

Enter the damping parameter γ\gamma of this channel and the probability P(1)P(1) of measuring 11 after the idle period. Each value is graded with absolute tolerance 10−310^{-3}; exact expressions such as 1-exp(-0.2) are accepted (and then compared to 10−910^{-9}).

Enter exact expressions or decimals, e.g. 1/sqrt(2), pi/3. Values must be real.

enter a value
enter a value
Fill every field with a valid expression.

Step 2: Engineer a dephased state with one gate and noise channels

Starting from ∣0⟩\lvert0\rangle, build a one-qubit circuit whose output is the mixed state

σ=(0.50.30.30.5)=12(I+0.6 X).\sigma=\begin{pmatrix}0.5&0.3\\0.3&0.5\end{pmatrix}=\tfrac12\big(I+0.6\,X\big).

You may use one gate, either HH or RYR_Y, together with any number of noise channels from amplitude damping, phase damping and depolarizing (the gate limit counts gates only, not channels). The circuit is simulated exactly on the density-matrix backend, with the engine conventions of the lesson: phase damping ρ01↦1−λ ρ01\rho_{01}\mapsto\sqrt{1-\lambda}\,\rho_{01}, amplitude damping K0=diag(1,1−γ)K_0=\mathrm{diag}(1,\sqrt{1-\gamma}), K1=γ∣0⟩⟨1∣K_1=\sqrt\gamma\lvert0\rangle\langle1\rvert, and depolarizing ρ↦(1−4p3)ρ+4p3I2\rho\mapsto(1-\tfrac{4p}3)\rho+\tfrac{4p}3\tfrac I2. In the circuit script a channel is a statement with the qubit first and then its parameter, for example amplitudeDamping(0, 0.1)\texttt{amplitudeDamping(0, 0.1)}, phaseDamping(0, 0.5)\texttt{phaseDamping(0, 0.5)} or depolarizing(0, 0.05)\texttt{depolarizing(0, 0.05)}; gates are written as H(0)\texttt{H(0)} or RY(0, pi/3)\texttt{RY(0, pi/3)}, and statements are separated by semicolons or new lines. The grader requires the trace distance 12∥ρ−σ∥1≤10−6\tfrac12\lVert\rho-\sigma\rVert_1\le10^{-6}. Bit flip, phase flip and thermal relaxation are not available in this step.

  • 1 qubit
  • allowed gates: H, RY
  • at most 1 gate
  • no measurements
  • noise channels: phaseDamping, depolarizing, amplitudeDamping

One gate per line or separated by ;, e.g. H(0); CNOT(0,1); RY(1, pi/3); measure(1 -> 0). Qubit 0 is the top wire (most significant bit); controls come first. # starts a comment.

Measure into a classical bit with measure(q -> c); apply a gate only when a bit is set with X(2) if c1==1 (several bits, first = most significant: if c[0,1]==3).

Noise channels allowed here: phaseDamping(q, λ), depolarizing(q, p), amplitudeDamping(q, γ). A channel acts on one qubit q and takes numbers only (probabilities γ, λ, p in [0, 1]), e.g. phaseDamping(0, 0.1); it cannot be classically conditioned. With a channel the preview shows the density matrix.

Circuit diagram of your answerEmpty circuitq0
Statevector amplitudes
BasisAmplitude α|α|Phase arg αProbability
|0⟩1
1.0000
0
100.00%
1 basis state with zero amplitude hidden