IRewriteStep.PostconditionVerification(QsCompilation) Method

Definition

Verifies whether a given compilation satisfies the postcondition after executing the implemented transformation (if any). ImplementsPostconditionVerification indicates whether or not this method is implemented. The verification may be omitted for performance reasons depending on the build configuration. The postcondition verification should never throw an exception, but instead indicate if the postcondition is satisfied via the returned value. More detailed information can be displayed to the user by generating suitable diagnostics.

public bool PostconditionVerification (Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation compilation);
abstract member PostconditionVerification : Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation -> bool
Public Function PostconditionVerification (compilation As QsCompilation) As Boolean

Parameters

compilation
QsCompilation

Q# compilation after performing the implemented transformation.

Returns

Boolean

Whether or not the given compilation satisfies the postcondition of the transformation.

Applies to