OQS Project 1: Depolarizing channel

Published by strangeworks (01/04/2021)

The following series of posts combine projects from Open Quantum Systems with Qiskit with Strangeworks to allow readers to quickly explore and apply concepts with real quantum code using the free community edition of the Strangeworks platform.

In this project we will implement the depolarizing channel in qiskit and test it with state tomography on the simulator and on a real device.

Clone the project to your account to get started. Don't have an account? No problem! You can sign up for our free account and the project will be waiting for you in your dashboard.

We introduced the depolarizing channel in Chapter 5 where we showed the circuit that implements it.

Here it is again:

Task 1

Create a function that returns a quantum circuit implementing depolarizing channels with parameter pp​ on a specified qubit system, using three ancillary qubits ancillary = [a1, a2, a3].

Task 2

Write a circuit prepared_state that prepares the system qubit in an initial state that has non-zero populations and coherences (both real and imaginary parts).

Task 3

For different values of p[0,1]p \in [0,1]​:
  1. Concatenate prepare_state and depolarizing_channel in a circuit and create the corresponding tomography_circuits (check the preliminaries for help with the tomography).
  2. Execute the tomography_circuits in the simulator and collect the results.

Task 4

  1. Process the results of the simulation by performing the tomographic reconstruction.
  2. Find analytically what is the density matrix of the system qubit after the depolarizing channel as a function of pp​.
  3. Plot the values of ρ11,ρ22,Rρ12,Fρ12\rho_{11}, \rho_{22}, \mathfrak{R}\rho_{12},\mathfrak{F}\rho_{12}​ as function of pp​​ and compare them to the analytical prediction.

Up to the statistical errors due to the finite number of shots, the simulated points should match the analytical prediction.


Perform Tasks 3-5 on a real device, and include error mitigation (check the preliminaries for instructions). Compare the results with the simulation.


All done? Click here to return to the Index or go on to Project 2.