Trying to run the Tuturial on chemistry resource estimator

Aikaterini Gratsea 30 Reputation points
2024-07-03T09:17:55.2433333+00:00

I am trying to run the turotial https://learn.microsoft.com/en-us/azure/quantum/tutorial-resource-estimator-chemistry, but when I follow the instructions there I get the error

IQ# is not installed.

Please follow the instructions at https://aka.ms/qdk-install/python.

Then, I follow the instructions on the link above, but seem to be opposite to what the tutorial suggests. For example, in the link above it is mentioned to do

python -m pip uninstall qsharp qsharp-core qsharp-chemistry azure-quantum

while in the tutorial it is mentioned to do

python -m pip install --upgrade qsharp numpy scipy.

Could you please how to procceed?

Thanks!

Azure Quantum
Azure Quantum
An Azure service that provides quantum computing and optimization solutions.
68 questions
{count} votes

Accepted answer
  1. kobulloc-MSFT 26,131 Reputation points Microsoft Employee
    2024-07-09T22:29:09.54+00:00

    Hello, @Aikaterini Gratsea !

    Why am I running into errors while attempting to run Tutorial: Estimate the resources of a quantum chemistry problem?

    Example error: IQ# is not installed.

    IQ# was a legacy Jupyter/python support engine that was deprecated last January. You will need to remove any legacy qsharp-core and qsharp-chemistry packages that have been installed.

    You can perform a clean install of the QDK on VS Code by doing the following:

    https://learn.microsoft.com/en-us/azure/quantum/install-overview-qdk#installing-the-qdk-on-vs-code

    1. In VS Code, disable or uninstall the Microsoft Quantum Development Kit extension.
    2. Run python -m pip uninstall qsharp qsharp-core qsharp-chemistry azure-quantum
    3. If needed, install the latest version of VS Code or open VS Code on the Web.
    4. Install the Azure Quantum Development Kit extension.

    Note that step 2 will uninstall any legacy packages. In combination with step 1, this will give you a clean install with the latest versions.

    If you are still running into issues after completing this, let us know in the comments so we can figure out why the uninstall isn't working correctly.


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more