Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles MOUSSA committed Dec 18, 2024
1 parent b908760 commit 625ad6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyqtorch/noise/analog.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def __init__(
for index, tensor in enumerate(noise_operators):
if len(self._qubit_support) < int(log(tensor.shape[1], 2)):
raise ValueError(
f"Tensor dimensions should match the length of the qubit support. Tensor {tensor} has incompatible dimensions {int(log(tensor.shape[1], 2)}."
"Tensor dimensions should match the length of the qubit support."
f"Tensor {tensor} has incompatible dimensions {int(log(tensor.shape[1], 2))}."
)
self.register_buffer(f"noise_operators_{index}", tensor)

Expand Down

0 comments on commit 625ad6b

Please sign in to comment.