0
$\begingroup$

I would like to get the matrix form of a quantum circuit, representing the operation on normal qubits, after specifying the ancilla qubit at a given state. Is there any way to realize this using Qiskit or other software?

$\endgroup$

1 Answer 1

0
$\begingroup$

It seems that there is no such built-in function in Qiskit. For illustration, I write out the process to get the answer below after supposing that the ancilla qubits are at state |0>. To get the answer when the ancilla qubits are at an arbitrary state, we can first rotate the ancilla qubits from |0> to the desired state in the circuit.

enter image description here

$\endgroup$

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.