Quantum Computing Asked by Henao on January 18, 2021
When I use job.result().get_counts
I am getting this result:
<bound method Result.get_counts of <qiskit.result.result.Result object at ...>>
but no counts at all. I have tested it both with a new job and with an old one and in both cases the counts are not shown.
You are missing the ()
at the end of job.result().get_counts()
.
Answered by Paul Nation on January 18, 2021
Always in Python you need to put brakcets whenever you call a function:
job.result().get_counts(<function parameters>)
The parameter is a circuit name or index. If you run a single circuit then it should be:
job.result().get_counts()
Answered by Yael Ben-Haim on January 18, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP