Microsoft.Quantum.QsCompiler.Transformations.Conjugations Namespace

Classes

InlineConjugations

Syntax tree transformation that inlines all conjugations, thus eliminating them from a given scope. All exception thrown during transformation are caught and the action given upon instantiation - if any - is called upon them. The syntax tree is left unchanged if an exception occurs. The Success property is true if and only if no exceptions occurred. The generation of the adjoint for the outer block is subject to the same limitation as any adjoint auto-generation. In particular, it is only guaranteed to be valid if operation calls only occur within expression statements, and throws an InvalidOperationException if the outer block contains while-loops.

InlineConjugations.TransformationState