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

sparse_simulate not finding magic command #751

@sam-jaques

Description

@sam-jaques

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions