I have a quantum circuit and the job has been run on the "statevector" backend, which runs only 1 shot.
Therefore is there a way to return the qubit state (0 or 1) specifically when selected specifically ?
Quantum Computing Stack Exchange is a question and answer site for engineers, scientists, programmers, and computing professionals interested in quantum computing. It only takes a minute to sign up.
Sign up to join this communityI have a quantum circuit and the job has been run on the "statevector" backend, which runs only 1 shot.
Therefore is there a way to return the qubit state (0 or 1) specifically when selected specifically ?
The statevector
backend returns the final state vector at the end of the circuit. If you would like to return the counts instead, the qasm_simulator
should be used. This returns, in the result object, a dictionary which contains the results as keys and the number of times the result was seen as values. For example, for a circuit that constructs a Bell state, run 10 times, this could be {00: 6, 11: 4}