CodeTransformations.GenerateControlled(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) 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