CodeTransformations.GenerateAdjoint(QsScope) Method

Definition

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

Returns

QsScope

Applies to