Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

sparse_simulate not finding magic command #751

Open
sam-jaques opened this issue Dec 16, 2022 · 0 comments
Open

sparse_simulate not finding magic command #751

sam-jaques opened this issue Dec 16, 2022 · 0 comments
Labels

Comments

@sam-jaques
Copy link

sam-jaques commented Dec 16, 2022

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.

@sam-jaques sam-jaques added the bug label Dec 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant