2
$\begingroup$

enter image description here

I have a sample IBM experience circuit which generates $$\frac{1}{2}(|00\rangle - |01\rangle - |10\rangle + |11\rangle)$$ When we measure the state will be either $|00\rangle$/$|01\rangle$/$|10\rangle$/$|11\rangle$.

I know that state phase disappears after measurement. I am testing a complex circuit which involves phase angles and I want to ask my questionusing a simple state as mentioned above.

Is there anyway to know if the circuit has produced my desired state. I want to view the full state.

$\endgroup$
  • 2
    $\begingroup$ Click on the icon with graph on left hand-side from window with qasm code. You will see theoretical output od the circuit. $\endgroup$ – Martin Vesely Feb 19 at 14:52
3
$\begingroup$

enter image description hereClick on the icon with graph on left hand-side from window with qasm code. You will see theoretical output of the circuit.

+1 for Martin Vesely's comment.

|improve this answer|||||
$\endgroup$
2
$\begingroup$

If you get the QASM of your circuit, you can load this into Qiskit and run the circuit on the state vector simulator. This will show you what the final state vector of your circuit is.

You can load the circuit by using QuantumCircuit.from_qasm_str('your QASM') and you can then get the simulator using Aer.get_backend('statevector_simulator').

|improve this answer|||||
$\endgroup$

Your Answer

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

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