1
$\begingroup$

If I have an arbitrary non-unitary matrix of say $$ U = \begin{pmatrix} 1.5 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1.6 \\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ \end{pmatrix}, $$

is it possible to decompose it into gates implementable in qiskit?

If so, how? If not, why not?

Is is possible to have any arbitrary non-unitary matrix as an input and get the corresponding gates that implement this arbitrary matrix?

$\endgroup$
  • 1
    $\begingroup$ Welcome to quantum computing SC. In what way do you want to decompose the matrix? Do you mean to basic quantum gates? What does the matrix represent as it seems it is not unitary (columns are not unit vectors). $\endgroup$ – Martin Vesely Feb 15 at 9:05
  • $\begingroup$ I want to decompose any kind of matrix rather than a unitary matrix into elementary gates in Qiskit. Is this possible? Decomposition using KAK decomposition in Qiskit. $\endgroup$ – Monica Feb 16 at 18:53
  • $\begingroup$ See answer to the original in: quantumcomputing.stackexchange.com/questions/4975/… $\endgroup$ – Yehuda Naveh Feb 16 at 23:46
  • $\begingroup$ The long discussion about this is in response to question 4975 (link added as comment above) $\endgroup$ – Yehuda Naveh Feb 16 at 23:49
  • 1
    $\begingroup$ You should probably edit your question to add more information about what you want to achieve. You cannot decompose non-unitary gates as a sequence of quantum gates (a product of unitary matrices is always unitary). It is possible to "implement" non-unitary gates (and this becomes probabilistic and involved) but you asked for a decomposition, which is different. $\endgroup$ – Nelimee Feb 17 at 10:33

Your Answer

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

Browse other questions tagged or ask your own question.