-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Remove references to depreciated QasmSimulator #7417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
for more information, see https://pre-commit.ci
quantum/q_full_adder.py
Outdated
@@ -10,13 +10,12 @@ | |||
|
|||
import math | |||
|
|||
import qiskit | |||
from qiskit import Aer, ClassicalRegister, QuantumCircuit, QuantumRegister, execute | |||
import qiskit as q |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using just q
reduces readability for new users of qiskit and does not really save much space.
import qiskit as q | |
import qiskit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes made
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!!
Describe your change:
Replaced instances of
qiskit.Aer.get_backend("qasm_simulator")
inquantum/
withq.Aer.get_backend("aer_simulator")
, as the former is depreciated and raises warnings (Qiskit's documentation says thatQasmSimulator
is legacy).This PR edits multiple code files because they all raise the same warning and are mentioned in the same GitHub issue.
Fixes #7308
Checklist:
Fixes: #{$ISSUE_NO}
.