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

QIR generation for math functions should use LLVM intrinsics where possible, use rt functions otherwise #1557

Open
swernli opened this issue Sep 15, 2022 · 0 comments
Labels
enhancement New request or suggestion for an improvement needs triage An initial review by a maintainer is needed

Comments

@swernli
Copy link
Contributor

swernli commented Sep 15, 2022

Right now the math functions in Q# are treated as if they are quantum intrinsics, and become __quantum__qis__* declarations. Instead, the compiler should insert calls to the appropriate LLVM intrinsic trig functions or combinations thereof, and for those that can't it should treat them as functions supported by the standard library and named with the __quantum__rt__* pattern.

@swernli swernli added enhancement New request or suggestion for an improvement needs triage An initial review by a maintainer is needed labels Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New request or suggestion for an improvement needs triage An initial review by a maintainer is needed
Projects
None yet
Development

No branches or pull requests

1 participant