Skip to content

Commit

Permalink
Update pyqtorch/noise/analog.py
Browse files Browse the repository at this point in the history
Co-authored-by: RolandMacDoland <[email protected]>
  • Loading branch information
chMoussa and RolandMacDoland authored Dec 18, 2024
1 parent 5e70679 commit 16a418a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyqtorch/noise/analog.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
for index, tensor in enumerate(noise_operators):
if len(self._qubit_support) < int(log(tensor.shape[1], 2)):
raise ValueError(
"Tensor dimensions should match the length of the qubit support."
f"Tensor dimensions should match the length of the qubit support. 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 16a418a

Please sign in to comment.