diff --git a/pyqtorch/noise/analog.py b/pyqtorch/noise/analog.py index 39c1b57f..7fce4d00 100644 --- a/pyqtorch/noise/analog.py +++ b/pyqtorch/noise/analog.py @@ -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)