4

Suppose, you have two parts of a circuit in Qiskit, qc1 and qc2 on any number of qubits such that the entire circuit is given by

qc = qc1.compose(qc2)

For sake of concreteness, here is an example on 2 qubits:

qc1 = QuantumCircuit(2)
qc2 = QuantumCircuit(2)

qc1.h([0,1]) qc2.x(0)

I want to apply a single-qubit channel on the first qubit, say a depolarizing one, in between qc1 and qc2 and then simulate the whole circuit using qiskit. That is, after qc1 and before qc2. After having looked at the Qiskit Aer noise module, my idea would be to introduce a noisy version of an identity gate between the two circuits qc1 and qc2. How to do this?

Marsl
  • 1,009
  • 7
  • 11

0 Answers0