Skip to content

Commit

Permalink
Make minor but critical update to baseline truncation numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex McKeehan Boulton committed Jul 20, 2024
1 parent 66ec2e9 commit d452e62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SQcircuit/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1858,12 +1858,12 @@ def truncate_circuit(self, K: int, heuristic=False) -> List[int]:
for mode in self.omega:
# charge mode
if mode == 0:
trunc_nums.append(np.ceil(trunc_num_average))
trunc_nums.append(int(np.ceil(trunc_num_average)))
else:
h = (A * trunc_num_average) / mode
trunc_nums.append(np.ceil(h))
else:
trunc_nums = [np.ceil(trunc_num_average) for _ in range(len(self.omega))]
trunc_nums = [int(np.ceil(trunc_num_average)) for _ in range(len(self.omega))]

self.set_trunc_nums(trunc_nums)
return trunc_nums
Expand Down

0 comments on commit d452e62

Please sign in to comment.