From c185c836e0039e4355c8bff57c35a0ae53b78a4b Mon Sep 17 00:00:00 2001 From: Guang Hao Low Date: Mon, 18 Nov 2019 19:15:40 -0800 Subject: [PATCH] Fix high-order Trotter bug --- Standard/src/Canon/Enumeration/Trotter.qs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Standard/src/Canon/Enumeration/Trotter.qs b/Standard/src/Canon/Enumeration/Trotter.qs index b8229e14ff7..4fb51dcc067 100644 --- a/Standard/src/Canon/Enumeration/Trotter.qs +++ b/Standard/src/Canon/Enumeration/Trotter.qs @@ -138,7 +138,7 @@ namespace Microsoft.Quantum.Canon { /// Computes Trotter step size in recursive implementation of /// Trotter simulation algorithm. function _TrotterStepSize (order: Int) : Double { - return 1.0 / (4.0 - PowD(4.0, 1.0 / (2.0 * IntAsDouble(order) - 1.0))); + return 1.0 / (4.0 - PowD(4.0, 1.0 / (IntAsDouble(order) - 1.0))); }