From 3e36a327e59728cf9be9e3cadb8266364232b763 Mon Sep 17 00:00:00 2001 From: John Lapeyre Date: Sat, 9 Aug 2025 15:22:16 -0400 Subject: [PATCH] Pass timeout CLI options to synthesis routines The command line options that allow setting factoring timeout and Diophantine solution timeout were ignored. This commit passes them to the synthesis routines. --- pygridsynth/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pygridsynth/__main__.py b/pygridsynth/__main__.py index 0995c75..afb3b6b 100644 --- a/pygridsynth/__main__.py +++ b/pygridsynth/__main__.py @@ -23,6 +23,8 @@ def main(): epsilon = mpmath.mpmathify(args.epsilon) gates = gridsynth_gates(theta=theta, epsilon=epsilon, + factoring_timeout=args.ftimeout, + diophantine_timeout=args.dtimeout, verbose=args.verbose, measure_time=args.time, show_graph=args.showgraph) print(gates)