private static void InitSimulator(SimulatorBase sim)
        {
            sim.InitBuiltinOperations(typeof(OperationsTestHelper));
            sim.Register(typeof(Tests.Circuits.Generics.Trace <>), typeof(TraceImpl <>), typeof(IUnitary));

            // For Toffoli, replace H with I.
            if (sim is ToffoliSimulator)
            {
                sim.Register(typeof(Intrinsic.H), typeof(Intrinsic.I), typeof(IUnitary));
            }
        }
 private static void InitSimulator(SimulatorBase sim)
 {
     sim.InitBuiltinOperations(typeof(OperationsTestHelper));
 }