microsoft / qsharp-compiler

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

Q#-Compiler - Fullstate Simulator V1 Output Format #1552

Closed ScottCarda-MS closed 1 year ago

ScottCarda-MS commented 2 years ago
  1. Adds the LoadFrom public function to allow the Runtime to load a BitcodeModule from qir bitcode.
  2. Fixes issue where OutputRecording definitions' parameter construction had mixed up the case where there was no parameters with the case where there were non-zero parameters.
  3. Replaces TargetCapability with assembly constants dictionary in the GenerateBitcode and GenerateLlvmIR API parameters so that we can use both the target capability and the process architecture.
  4. When targeting the Microsoft Full State Simulator (specified by process architecture), runs the Add Output Recording rewrite step.
  5. Adds the Replace Message Calls transformation to the Add Output Recording rewrite step. This transformation replaces Message references to the API RecordMessage, which gets translated into the __quantum__rt__message_record_output in QIR.
ScottCarda-MS commented 1 year ago

We are no longer pursuing this.