qsharp-compiler
qsharp-compiler copied to clipboard
Q# compiler, command line tool, and Q# language server
**Describe the bug** Replacing the code based on the warning about deprecated syntax (see repro below) produces a runtime error Unhandled exception. System.InvalidCastException: Unable to cast object of type 'System.ValueTuple`2[Microsoft.Quantum.Simulation.Core.QArray`1[System.Int64],Microsoft.Quantum.Simulation.Core.QRange]'...
Issues #1377 and microsoft/iqsharp#606 show that lambdas need to be lifted before code gen and serialization can run. However, the compiler doesn't know this, and it tries to perform steps...
**Describe the bug** Invalid LLVM code is generated in a Q# example with unreachable code. **To Reproduce** Run the following project: ```xml Exe netcoreapp5.0 x64 true false false ``` ```qsharp...
It's not long before the official release of Visual Studio 2022, and after all this time since the release of the preview versions, Q# is still not supported in this...
## Description As shown in the below testcase, there is an incorrect operation call in line 12. When executing the testcase, it reports an error normally. But the description of...
This draft PR adds new functionality to the docgen step to check for common documentation errors and to expose them to the user. Each linting rule can be turned off,...
Most documentation comments in the compiler only use the `` tag. For short comments, this is fine, but in many cases the summary is several paragraphs long and would be...
See related discussion at https://github.com/microsoft/qsharp-compiler/issues/1235#issuecomment-1029532735. Without MSBuild, the Language Server cannot load dependencies and falls back to syntactic-only features. We should explore some of the options listed in the linked...
**Describe the bug** Using Controlled variant of a function crashes language server and throws compilation errors "QS7022 The compiler threw an exception." and "QS7106 Unable to serialize the built compilation."...
**Is your feature request related to a problem? Please describe.** The compiler has support for running arbitrary code on the Q# syntax tree during compilation in the form of the...