diff --git a/qualtran/simulation/tensor/tensor_from_classical.py b/qualtran/simulation/tensor/tensor_from_classical.py index 58e6e2043..b6d7559f7 100644 --- a/qualtran/simulation/tensor/tensor_from_classical.py +++ b/qualtran/simulation/tensor/tensor_from_classical.py @@ -54,7 +54,7 @@ def tensor_from_classical_sim(bloq: Bloq) -> NDArray: else: output_t = np.array([]) - matrix[*np.atleast_1d(output_t), *np.atleast_1d(input_t)] = 1 + matrix[tuple([*np.atleast_1d(output_t), *np.atleast_1d(input_t)])] = 1 shape: tuple[int, ...] if n_qubits_left == 0 and n_qubits_right == 0: