CodeTransformations.GenerateControlled(QsScope) Method

Definition

Given the body of an operation, auto-generates the (content of the) controlled specialization using the default name for control qubits. Adds the control qubits names to the list of defined variables for the scope and each subscope.

public static Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope GenerateControlled (this Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope scope);
static member GenerateControlled : Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope -> Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope
<Extension()>
Public Function GenerateControlled (scope As QsScope) As QsScope

Parameters

scope
QsScope

Returns

QsScope

Applies to