Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an attempt to update the
simulator_qiskit
code to be compatible with the latest version of Qiskit and Qiskit Aer. I likely did not catch everything, but basic calls totq.simulate()
should work.Using this requires the packages
qiskit
,qiskit-aer
andqiskit-ibm-runtime
.TODO: FakeProvider does not seem to exist anymore, see Qiskit/qiskit#11376, and I wasn't sure what exactly it is used for, so I just commented it out for now.
References for some of the changes I made:
bind_parameters
->assign_parameters
: assign_parameters and bind_parameters do almost the same thing. Can they be merged? Qiskit/qiskit#7057qiskit.providers.ibmq
->qiskit_ibm_runtime
: READMEs in https://github.com/Qiskit/qiskit-ibmq-provider and https://github.com/Qiskit/qiskit-ibm-providerqiskit.test.mock
->qiskit.providers.fake_provider
: Moveqiskit.test.mock
toqiskit.providers.fake_provider
and deprecate Qiskit/qiskit#7738