Skip to content

C#-Q# Interoperability problem! #2738

@ebrahimi72

Description

@ebrahimi72

I'm developing a C# app to benchmark the single-file implementation of Shor's algorithm by Microsoft, but dozens of errors occur inside the qsharp source when compiled as a project while the single-file project complies and runs fine stand-alone using VS code Run menu.
I have tested many version combinations but it seems there is a version conflict between QDK and .Net resulting many errors. I attach the related files and also paste some errors . Please help me, I would be so grateful.

Some of the erros:

  • Shor.qs(10,12): error QS3035: Unexpected code fragment.
  • Shor.qs(10,5): error QS3036: An expression used as a statement must be a call expression.
  • Shor.qs(11,12): error QS3035: Unexpected code fragment.
  • Shor.qs(12,5): error QS3036: An expression used as a statement must be a call expression.
  • Shor.qs(290,17): error QS3001: Syntax does not match any known patterns.
  • Shor.qs(28,9): error QS5022: No identifier with the name "Message" exists.
  • Shor.qs(56,29): error QS5022: No identifier with the name "DrawRandomInt" exists.

ShorBenchmarking.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions