qiskit-tutorials icon indicating copy to clipboard operation
qiskit-tutorials copied to clipboard

Tutorials should not use get_statevector

Open yaelbh opened this issue 3 years ago • 2 comments

result.get_statevector belongs to the old Aer interface, where we had separate qasm and statevector simulators. With the move to Aer 0.8, the instruction save_statevector was correctly added to the tutorials, but the call to get_statevector is still there.

yaelbh avatar May 04 '21 06:05 yaelbh

@yaelbh I could take a look at it, if the tutorials aren't fixed yet.

MartinBeseda avatar Jul 20 '21 12:07 MartinBeseda

Ok, thanks. I'm not absolutely sure if the issue is correct. @chriseclectic or @mtreinish will probably know.

yaelbh avatar Jul 20 '21 12:07 yaelbh

The API still exists as of Qiskit 0.44. So this should be fine. https://qiskit.org/documentation/stubs/qiskit.result.Result.html#qiskit.result.Result.get_statevector

Eric-Arellano avatar Aug 18 '23 18:08 Eric-Arellano