Solvedqiskit tutorials Error in notebook "quantum_emoticon": unable to get counts
indisoluble posts at
30 Answers
Share
Original✔️Accepted Answer
Hi,
Thank you for pointing this. I also got the same error when running the notebook. It is due to a bug in compiler that swap measurement to the middle of the computation but the devices do not support such operation yet. I confirmed that I can avoid the error by inserting barrier before measurement, like:
#put barrier before measurement
qc.barrier(qr)
# measure
for j in range(16):
qc.measure(qr[j], cr[j])
# run and get results
results = qp.execute(["smiley_writer"], backend='ibmqx5', shots=1024, timeout=240)
stats = results.get_counts("smiley_writer")
I cannot run the real device now because it is under maintenance though.
Related Issues:
4
qiskit tutorials Error in notebook "quantum_emoticon": unable to get counts
Hi Thank you for pointing this I also got the same error when running the notebook ...
111
react gh pages Code is deployed, but page is blank
Hi @indrawanadjie Thanks for providing all the information I requested Useful package i already foll...
46
webpack book Loading Images - example for creating img elements
What I ended up doing is this: I created a directory called images at the top level with all my imag...
31
howtographql Error: Not authenticated
The tutorial is missing a step In order to successfully execute the post mutation you need to includ...
7
serverless stack com Comments: Upload a File to S3
@alpiepho the policy allowing the Identity Pool to access S3 resources was defined in Create a Cogni...
Description
These are the steps I followed to get the error:
git clone https://github.com/QISKit/qiskit-tutorial.git
(commit 37faf8b)cd qiskit-tutorial/
vi 0_hello_world/Qconfig.py
:pip install -r requirements.txt
jupyter notebook index.ipynb
I got the following errors:
And this trace:
Your Environment