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
  • 1
    $\begingroup$ Could you please do it by copy-paste? Screenshots are bad. $\endgroup$
    – peterh
    Nov 27, 2019 at 14:33

1 Answer 1

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$
2
  • 1
    $\begingroup$ Thank you so much! I did it! $\endgroup$
    – Jacey Li
    Nov 28, 2019 at 2:15
  • $\begingroup$ It seems that the link became invalid. $\endgroup$
    – Grwlf
    Sep 6, 2022 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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