static DriverParameters() { var qsim = new ToffoliSimulator(); DriverParameters.IsTestable = IsMinimizeDepthCostMetric.Run(qsim).Result; DriverParameters.MinimizeDepthCostMetric = IsMinimizeDepthCostMetric.Run(qsim).Result; DriverParameters.MinimizeTCostMetric = IsMinimizeTCostMetric.Run(qsim).Result; DriverParameters.MinimizeWidthCostMetric = IsMinimizeWidthCostMetric.Run(qsim).Result; }
static DriverParameters() { // Turn off IsTestable to run the resource estimator Microsoft.Quantum.Crypto.Basics.IsTestable.Testable = false; DriverParameters.IsTestable = false; var qsim = new ToffoliSimulator(); DriverParameters.MinimizeDepthCostMetric = IsMinimizeDepthCostMetric.Run(qsim).Result; DriverParameters.MinimizeTCostMetric = IsMinimizeTCostMetric.Run(qsim).Result; DriverParameters.MinimizeWidthCostMetric = IsMinimizeWidthCostMetric.Run(qsim).Result; }