IRewriteStep.Transformation(QsCompilation, QsCompilation) 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.
Implements a rewrite step transforming a Q# compilation. ImplementsTransformation indicates whether or not this method is implemented. The transformation should complete without throwing an exception if no precondition verification is implemented or the implemented verification passes.
public bool Transformation (Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation compilation, out Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation? transformed);
abstract member Transformation : Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation * QsCompilation -> bool
Public Function Transformation (compilation As QsCompilation, ByRef transformed As QsCompilation) As Boolean
Parameters
- compilation
- QsCompilation
Q# compilation that satisfies the implemented precondition, if any.
- transformed
- QsCompilation
Q# compilation after transformation. This value should not be null if the transformation succeeded.
Returns
Whether or not the transformation succeeded.