IBM Quantumで学ぶ量子コンピュータ - 秀和システム あなたの学びをサポート! の内容と現在の API や textbook では少し差がある。これについて少し調べてみた。
execute
Remove references to 'execute' by frankharkins · Pull Request #920 · qiskit-community/qiskit-textbook · GitHub
を見ると execute
は他の API に置き換えられていったようだ。
- Deprecate execute() by ajavadia · Pull Request #7892 · Qiskit/qiskit-terra · GitHub
- Originally it was a replacement for 3 steps: transpile, assemble, run. Now it is a substitute for just two steps (transpile and run), so the convenience is diluted. It has also not kept up with recent transpile or run options (e.g. #7640).
ということで便利関数だったが、最新の状況に追従できていなさそう。
Aer.get_backend
上記の commit でシミュレータも aer_simulator
に統一されたようだ。シミュレータ周りの変更については関連する問題などが issue から読み取れていない。