iqsharp
iqsharp copied to clipboard
sparse_simulate not finding magic command
Describe the bug The sparse simulator is not accessible from Jupyter notebooks or python.
To Reproduce Steps to reproduce the behavior: In Jupyter:
%%qsharp
operation nop(): Unit {}
nop.simulate()
nop.simulate_sparse()
This results in an error: "No such magic command %simulate_sparse".
If I replace simulate_sparse with simulate_dense (which is not a simulator), I get a different error: "'QSharpCallable' object has no attribute 'simulate_dense'".
System information
- qsharp package Version: 0.27.244707
- iqsharp: 0.20.2110171573
- Jupyter Core: 1.5.0.0
- .NET Runtime: .NETCoreApp,Version=v3.1
dotnet 6.0.300 is installed; I'm not sure if iqsharp needs to use it, and if so, how to do so.