Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            using var qsim = new QuantumSimulator();
            int n = 1000;

            System.Diagnostics.Stopwatch stopwatch = System.Diagnostics.Stopwatch.StartNew();
            string[] results = new string[n];
            for (int i = 0; i < n; i++)
            {
                IQArray <Result> res = QMPE.Run(qsim).Result;
                results[i] = res.ToString();
            }
            stopwatch.Stop();
            Console.WriteLine($"Elapsed time: {stopwatch.ElapsedMilliseconds / 1000.0} sec");
            PrintResults(results);
        }