0
$\begingroup$

My circuit is with 18 qubits. I want to find density matrix by calling DensityMatrix.from_instruction(qc) but then I get an error "Maximum supported dimension for an ndarray is 32, found 36". Any suggestions on a workaround? Is there a way to specify the output to be np.array rather than np.ndarray?

$\endgroup$
1
  • $\begingroup$ Can you please provide your code? In particular, does your code include mid-circuit measurements? $\endgroup$
    – Tristan Nemoz
    Commented May 7 at 19:34

0

Your Answer

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

Browse other questions tagged or ask your own question.