This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
Process Tomography does not handle trace preserving constraint correctly #437
Labels
bug
Something isn't working
Informations
What is the current behavior?
The process tomography fitter does not correctly include the trace preserving constraint when using the
cvx
methodSteps to reproduce the problem
What is the expected behavior?
The resulting channel should be trace preserving, i.e. the second assert should not fail in the above code.
Suggested solutions
I have tracked down the error to the file
qiskit/ignis/verification/tomography/fitters/cvx_fit.py
. The cvxpy fitting routine is supposed to add the TP constraint by making sure that the partial trace of the Choi matrix is the identity. However it only checks the real part of the partial trace and not the imaginary part. The resulting choi matrix is therefore not TP.The text was updated successfully, but these errors were encountered: