microsoft / qsharp-runtime

Runtime components for Q#
https://docs.microsoft.com/quantum
MIT License
285 stars 93 forks source link

Could not load file or assembly 'Microsoft.Quantum.Simulators #998

Closed tioberoi closed 1 year ago

tioberoi commented 2 years ago

Describe the bug Quantum Simulator not working after azure deployment.

To Reproduce Steps to reproduce the behavior:

  1. Create a Azure Http Trigger project(API when trigger return simulator result from an optimisation algorithm in this case QAOA ) "using Microsoft.Quantum.Simulation.Simulators". The code works fine on local.
  2. Publish this project on Azure
  3. The API when called returns 500
  4. In the error log it appears 2022-04-20T14:10:09.756 [Error] Executed 'Function1' (Failed, Id=760ab337-5c5d-4975-8a76-950bb62982ae, Duration=41ms)Could not load file or assembly 'Microsoft.Quantum.Simulators, Version=0.24.0.0, Culture=neutral, PublicKeyToken=40866b40fd95c7f5'.

Expected behavior The same should work after deployment

Screenshots image

Additional context Add any other context about the problem here.

cgranade commented 2 years ago

Thanks for your report, @tioberoi! It looks like there may have been a problem with loading native dependencies used by your application, so let me transfer this to the runtime repo where they can help. Thanks!

bettinaheim commented 2 years ago

I think we may need more details here, ideally a reproduction in a clean environment. @tioberoi Could you share exactly what you are publishing on Azure?

bettinaheim commented 1 year ago

Closing since we can't reproduce.