I have successfully run bit_flip_error in Qiskit by function pauli_error, but I can not find how to implement a kraus_error.

pauli_error works as follows:

pauli_error([('X', p_reset), ('I', 1 - p_reset)])



I believe you can implement it a similar way you implemented the pauli_error, just with different parameter input. You need to pass in a (list[matrix]): Kraus matrices. The kraus_error method is defined here. You should be able to import it from the same module you import pauli_error from: qiskit.providers.aer.noise.errors.standard_errors

  • 1
    $\begingroup$ Thank you so much! I did it! $\endgroup$ – Jacey Li Nov 28 at 2:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.