0
$\begingroup$

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)])

kraus_error?

$\endgroup$
  • 1
    $\begingroup$ Could you please do it by copy-paste? Screenshots are bad. $\endgroup$ – peterh - Reinstate Monica Nov 27 '19 at 14:33
1
$\begingroup$

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

$\endgroup$
  • 1
    $\begingroup$ Thank you so much! I did it! $\endgroup$ – Jacey Li Nov 28 '19 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.