CodeTransformations.GenerateAdjoint(QsScope) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Given the body of an operation, auto-generates the (content of the) adjoint specialization, under the assumption that operation calls may only ever occur within expression statements, and while-loops cannot occur within operations.
public static Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope GenerateAdjoint (this Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope scope);
static member GenerateAdjoint : Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope -> Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope
<Extension()>
Public Function GenerateAdjoint (scope As QsScope) As QsScope
Parameters
- scope
- QsScope