0
$\begingroup$

According to the ManagedResults Documentation the class has a combine_results method, however when attempting to use it as follows:

job_set = IBMQJobManager().run(circs, backend=ibmq_backend, name='job-set-abc')
job_results = job_set.results()
job_results_combined = job_results.combine_results() # fails on this line
job_counts_combined = job_results_combined.get_counts()

I get the following error:

AttributeError: 'ManagedResults' object has no attribute 'combine_results'

Furthermore, the combine_results method is not listed under help(type(job_results)):

Does this mean that the method has been deprecated? If so how can I overcome this?

$\endgroup$

1 Answer 1

0
$\begingroup$

It's still there. See the source code: https://github.com/Qiskit/qiskit-ibmq-provider/blob/stable/0.8/qiskit/providers/ibmq/managed/managedresults.py#L178

Are you using the right version of qiskit-ibmq-provider? combine_results was introduced in 0.8.

If you do

import qiskit
print(qiskit.__qiskit_version__)

it'll show you the version of each element.

$\endgroup$
2
  • $\begingroup$ hmm, strange, I very recently upgraded to v0.20 but qiskit-ibmq-provider is still on 0.7.2 $\endgroup$
    – MShakeG
    Sep 11, 2020 at 23:05
  • $\begingroup$ furthermore, when I execute in the anaconda prompt: pip show qiskit-ibmq-provider it shows v0.8, however when I start the python interpreter and run: qiskit.__qiskit_version__ I get v0.7.2, which is quite unexpected. $\endgroup$
    – MShakeG
    Sep 11, 2020 at 23:42

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.