SyntaxTreeToQsharp.StatementKindTransformation Class
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.
Class used to generate Q# code for Q# statements. Upon calling Transform, the _Output property of the scope transformation given on initialization is set to the Q# code corresponding to a statement of the given kind.
public class SyntaxTreeToQsharp.StatementKindTransformation : Microsoft.Quantum.QsCompiler.Transformations.Core.StatementKindTransformation<Microsoft.Quantum.QsCompiler.Transformations.QsCodeOutput.SyntaxTreeToQsharp.TransformationState>
type SyntaxTreeToQsharp.StatementKindTransformation = class
inherit StatementKindTransformation<SyntaxTreeToQsharp.TransformationState>
Public Class SyntaxTreeToQsharp.StatementKindTransformation
Inherits StatementKindTransformation(Of SyntaxTreeToQsharp.TransformationState)
- Inheritance
-
SyntaxTreeToQsharp.StatementKindTransformation
Constructors
| SyntaxTreeToQsharp.StatementKindTransformation(SyntaxTreeToQsharp) |
Properties
| Expressions | (Inherited from StatementKindTransformationBase) |
| SharedState | (Inherited from StatementKindTransformation<T>) |
| Statements | (Inherited from StatementKindTransformationBase) |
| Transformation | (Inherited from StatementKindTransformation<T>) |
| Types | (Inherited from StatementKindTransformationBase) |
Methods
| OnAllocateQubits(QsQubitScope) | (Inherited from StatementKindTransformationBase) |
| OnBorrowQubits(QsQubitScope) | (Inherited from StatementKindTransformationBase) |
| OnConditionalStatement(QsConditionalStatement) | System.Object.OnConditionalStatement(Microsoft.Quantum.QsCompiler.SyntaxTree.QsConditionalStatement) |
| OnConjugation(QsConjugation) | System.Object.OnConjugation(Microsoft.Quantum.QsCompiler.SyntaxTree.QsConjugation) |
| OnEmptyStatement() | (Inherited from StatementKindTransformationBase) |
| OnExpressionStatement(TypedExpression) | System.Object.OnExpressionStatement(Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression) |
| OnFailStatement(TypedExpression) | System.Object.OnFailStatement(Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression) |
| OnForStatement(QsForStatement) | System.Object.OnForStatement(Microsoft.Quantum.QsCompiler.SyntaxTree.QsForStatement) |
| OnPositionedBlock(QsNullable<TypedExpression>, QsPositionedBlock) | (Inherited from StatementKindTransformationBase) |
| OnQubitInitializer(ResolvedInitializer) | (Inherited from StatementKindTransformationBase) |
| OnQubitScope(QsQubitScope) | System.Object.OnQubitScope(Microsoft.Quantum.QsCompiler.SyntaxTree.QsQubitScope) |
| OnRepeatStatement(QsRepeatStatement) | System.Object.OnRepeatStatement(Microsoft.Quantum.QsCompiler.SyntaxTree.QsRepeatStatement) |
| OnReturnStatement(TypedExpression) | System.Object.OnReturnStatement(Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression) |
| OnStatementKind(QsStatementKind) | (Inherited from StatementKindTransformationBase) |
| OnSymbolTuple(SymbolTuple) | (Inherited from StatementKindTransformationBase) |
| OnValueUpdate(QsValueUpdate) | System.Object.OnValueUpdate(Microsoft.Quantum.QsCompiler.SyntaxTree.QsValueUpdate) |
| OnVariableDeclaration(QsBinding<TypedExpression>) | System.Object.OnVariableDeclaration(Microsoft.Quantum.QsCompiler.SyntaxTree.QsBinding{Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression}) |
| OnWhileStatement(QsWhileStatement) | System.Object.OnWhileStatement(Microsoft.Quantum.QsCompiler.SyntaxTree.QsWhileStatement) |