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
$\begingroup$

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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