Прочитај на енглеском

Делите путем


Microsoft.Quantum.QsCompiler.Transformations.ClassicallyControlled Namespace

Classes

ReplaceClassicalControl

This transformation works in three passes. 1st Pass: Reshape conditional statements to replace Elif's and top level OR and AND conditions with equivalent nested if-else statements. 2st Pass: Lift the contents of conditional statements into separate operations, where possible. 3nd Pass: Convert conditional statements into interface calls, where possible. This relies on global callables being the only things that have type parameters.