Microsoft.Quantum.QsCompiler.Transformations.ClassicallyControlled Namespace
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.
Replace |
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. |