2
$\begingroup$

like mentioned in the title I've got working code on an outdated version of QisKit which I run on my own IDE. However I am wanting to run this on a real quantum computer and I can't do this as IBM quantum lab only works for the current version of QisKit.

I'm wondering if there is anyway around this without having to migrate my code to the current version of QisKit.

Thanks

$\endgroup$
1
  • $\begingroup$ can you generate an openqasm file ? That should be able to still run. $\endgroup$
    – Mauricio
    Commented Dec 15, 2022 at 10:07

1 Answer 1

2
$\begingroup$

Are you trying to copy your code to IBM Quantum Lab to execute? If that is the case you can downgrade the qiskit version by running !pip install qiskit==[old version] in a Jupyter notebook cell, where [old version] is the version of Qiskit your code was based on, for example 0.20.0. You may need to restart kernel for the old version to be reflected.

Alternatively, you should be able to run your code locally by installing old version in the same way as above or create a brand new virtual environment and install an old version.

$\endgroup$
1
  • $\begingroup$ Thankyou, this is perfect. $\endgroup$ Commented Dec 16, 2022 at 20:48

Your Answer

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

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