0
$\begingroup$

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.

$\endgroup$

2 Answers 2

2
$\begingroup$

You are missing the () at the end of job.result().get_counts().

$\endgroup$
3
1
$\begingroup$

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()
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.