diff --git a/src/QsCompiler/Compiler/RewriteSteps/ClassicallyControlled.cs b/src/QsCompiler/Compiler/RewriteSteps/ClassicallyControlled.cs
index cbd1a86cf5..bf96092f2b 100644
--- a/src/QsCompiler/Compiler/RewriteSteps/ClassicallyControlled.cs
+++ b/src/QsCompiler/Compiler/RewriteSteps/ClassicallyControlled.cs
@@ -10,12 +10,12 @@
namespace Microsoft.Quantum.QsCompiler.BuiltInRewriteSteps
{
///
- /// Replaces if-statements with the corresponding calls to built-in quantum operations if possible.
+ /// Replaces if-statements with the corresponding calls to built-in quantum operations if possible.
///
internal class ClassicallyControlled : IRewriteStep
{
public string Name => "Classically Controlled";
- public int Priority => RewriteStepPriorities.ControlFlowSubstitutions;
+ public int Priority => RewriteStepPriorities.ControlFlowSubstitutions;
public IDictionary AssemblyConstants { get; }
public IEnumerable GeneratedDiagnostics => null;
@@ -44,6 +44,8 @@ public bool PreconditionVerification(QsCompilation compilation)
.ToHashSet();
var requiredBuiltIns = new HashSet()
{
+ BuiltIn.NoOp.FullName,
+
BuiltIn.ApplyIfZero.FullName,
BuiltIn.ApplyIfZeroA.FullName,
BuiltIn.ApplyIfZeroC.FullName,