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
Describe the bug FileNotFound error while calling a fake backend from qiskit_ibm_runtime.fake_provider
Steps to reproduce
fromqiskitimportQuantumCircuitfromqiskitimporttranspilefromqiskit_ibm_runtime.fake_providerimportFakeManilaV2# Get a fake backend from the fake providerbackend=FakeManilaV2()
Expected behavior backend variable should initialise successfully without error
Hi @mrvee-qC-bee, I think that this might an installation issue (something related to the interaction between qiskit and qiskit-ibm-runtime). In principle, the error should not happen. It might help to try installing qiskit-ibm-runtime from source, as #1270 moved the fake backend base classes to qiskit-ibm-runtime, so maybe that would help reduce Python's confusion finding the files.
The root cause of this issue is that the json response snapshots aren't being included in the package files. The manifest list: https://github.com/Qiskit/qiskit-ibm-runtime/blob/main/MANIFEST.in will need to be updated to include the json files. Without including the json files in the manifest then when you install via a hosted package the JSON files which are in the source repo aren't present and you'll encounter an error like this.
Describe the bug
FileNotFound
error while calling a fake backend fromqiskit_ibm_runtime.fake_provider
Steps to reproduce
Expected behavior
backend
variable should initialise successfully without errorAdditional Information
The text was updated successfully, but these errors were encountered: