Skip to content

Commit

Permalink
change random-greedy to greedy (#1168)
Browse files Browse the repository at this point in the history
Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
  • Loading branch information
CalMacCQ and cqc-alec authored Dec 12, 2023
1 parent 996de98 commit c14aabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytket/pytket/zx/tensor_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c14aabe

Please sign in to comment.