microsoft / qsharp-compiler

Q# compiler, command line tool, and Q# language server
https://docs.microsoft.com/quantum
MIT License
684 stars 172 forks source link

Hardware capability problems are warnings by default (errors via option) #1595

Closed DmitryVasilevsky closed 1 year ago

DmitryVasilevsky commented 1 year ago

The following are warnings by default.

UnsupportedResultComparison = 5023 ResultComparisonNotInOperationIf = 5024 ReturnInResultConditionedBlock = 5025 SetInResultConditionedBlock = 5026 UnsupportedCallableCapability = 5027 UnsupportedClassicalCapability = 5028

They can generate errors if optional compiler command line switch --error is provided. It accepts whitespace separated warning numbers. Optional project property is supported and accepts semicolon separated warning numbers.