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.

Consider compiling QIR Runtime into a pair - dynamic and static lib. #630

@kuzminrobin

Description

@kuzminrobin

The code crossing the dynamic library boundary (ABI boundary) can bump into a number of issues. At least the C++ code.
The .ll code generated from the users' .qs files needs from QIR Runtime the @__quantum__rt__* and @__quantum__qis__* entry points only.
The rest of the APIs exposed by the QIR Runtime DLL, is needed by the Tests and Samples only.
To minimize the probability of the issues

  1. Consider merging the following DLLs into a single DLL:
  • Microsoft.Quantum.Qir.Runtime.dll
  • Microsoft.Quantum.Qir.QSharp.Foundation.dll
  • Microsoft.Quantum.Qir.QSharp.Core.dll
  1. Consider splitting the QIR Runtime into:
  • DLL exposing the @__quantum__rt__* and @__quantum__qis__* entry points only, with plain C interface (extern "C");
  • Static Lib exposing the C++ APIs for Tests, Samples, etc. (the point is that the whole C++ interface is exposed as a static lib, rather than dynamic).

See related #631.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions