Skip to content

Commit

Permalink
change random-greedy to greedy
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMacCQ committed Dec 11, 2023
1 parent 0382636 commit ab00a1f
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 ab00a1f

Please sign in to comment.