From c14aabe9b004af4a8837b7445bd6e6cf21b6f5d0 Mon Sep 17 00:00:00 2001 From: CalMacCQ <93673602+CalMacCQ@users.noreply.github.com> Date: Tue, 12 Dec 2023 12:31:03 +0000 Subject: [PATCH] change random-greedy to greedy (#1168) Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com> --- pytket/pytket/zx/tensor_eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytket/pytket/zx/tensor_eval.py b/pytket/pytket/zx/tensor_eval.py index 4449a5281b..a63bdbdbd1 100644 --- a/pytket/pytket/zx/tensor_eval.py +++ b/pytket/pytket/zx/tensor_eval.py @@ -199,7 +199,7 @@ def _tensor_from_basic_diagram(diag: ZXDiagram) -> np.ndarray: tensor_list.append(qt) net = qtn.TensorNetwork(tensor_list) net.full_simplify_(seq="ADCR") - res_ten = net.contract(output_inds=res_indices, optimize="random-greedy") + res_ten = net.contract(output_inds=res_indices, optimize="greedy") result: np.ndarray if type(res_ten) == qtn.Tensor: result = res_ten.data