You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
But when I was trying the code, I find that QuantumProgram and qiskit.extensions.qiskit_simulator can't be imported successfully. I am not sure whether it's because of the updating of Qiskit version. Then how can I obtain the wavefunction now?
Thank you!
Your Environment
QISKit version: 0.6.0
Python version: 3.6
The text was updated successfully, but these errors were encountered:
I searched for the Changelog, and found that in the Deprecated part of version 0.5.0, there is a sentence saying ''Simulators no longer return wavefunction by setting shots=1. Instead, use the local_statevector_simulator, or explicitly ask for snapshot.'' What does it mean?
That standard way to the get the final state vector is to use the statevector_simulator backend to execute a single shot of a circuit with no reset or measure instructions. For example:
Description
Hi, I found in this link that there is a way to obtain wavefunction from quibit registers, and an example is given:
its output is:
But when I was trying the code, I find that
QuantumProgram
andqiskit.extensions.qiskit_simulator
can't be imported successfully. I am not sure whether it's because of the updating of Qiskit version. Then how can I obtain the wavefunction now?Thank you!
Your Environment
The text was updated successfully, but these errors were encountered: