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
{{ message }}
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
Where is the problem?
The issue is in "Quantum States" chapter in the "Atoms of Computation Section" under the "Adding with Qiskit" section.
Here is the link:
Describe the problem
When trying to run this cell, which includes the command "Assemble", the cell fails and the output returns the following error message:
Traceback (most recent call last):
Cell In[59], line 2
counts = sim.run(qobj).result().get_counts()
File /opt/conda/lib/python3.10/site-packages/qiskit_aer/backends/aerbackend.py:196 in run
return self._run_qobj(circuits, validate, parameter_binds, **run_options)
TypeError: AerBackend._run_qobj() got multiple values for argument 'parameter_binds'
Use %tb to get the full traceback.
/tmp/ipykernel_103/2201439370.py:2: DeprecationWarning: Using a qobj for run() is deprecated as of qiskit-aer 0.9.0 and will be removed no sooner than 3 months from that release date. Transpiled circuits should now be passed directly using `backend.run(circuits, **run_options).
counts = sim.run(qobj).result().get_counts()
NOTE: this output is already different from the notebook linked above. In the above notebook link, the output is still displayed. However, when I ran it today on an IBM cloud notebook, there was no output and only the error message.
Expected behavior
This code should return a histogram plot instead of error.
Additional context / references
In order to get the expected behaviour, I followed the advice described in the DeprecationWarning and replaced the code in the original cell, ie
As per tutorial cell 15 warning assemble is deprecated in qiskit-aer >=0.9.0. Instead use
backend=Aer.get_backend("qasm_simulator") # You can change the simulator to other.
job=execute(qc_ha,backend=backend, shots=1024) # shots are optional
result=job.result()
counts=result.get_counts(qc_ha)
plot_histogram(counts)
Also your textbook link is not working replace it with textbook_link
Where is the problem?
The issue is in "Quantum States" chapter in the "Atoms of Computation Section" under the "Adding with Qiskit" section.
Here is the link:
https://learn.qiskit.org/course/ch-states/the-atoms-of-computation#adding-qiskit
Relatedly, this can also be seen in input line 15 of the notebook:
https://github.com/Qiskit/textbook/blob/main/notebooks/ch-states/atoms-computation.ipynb
Describe the problem
When trying to run this cell, which includes the command "Assemble", the cell fails and the output returns the following error message:
NOTE: this output is already different from the notebook linked above. In the above notebook link, the output is still displayed. However, when I ran it today on an IBM cloud notebook, there was no output and only the error message.
Expected behavior
This code should return a histogram plot instead of error.
Additional context / references
In order to get the expected behaviour, I followed the advice described in the
DeprecationWarning
and replaced the code in the original cell, iewith
The text was updated successfully, but these errors were encountered: