From a5ab3ce5e36c57d8f8adeb8127aecb2a554c674c Mon Sep 17 00:00:00 2001 From: Eugene Rublenko <16805621+stand-by@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:47:44 -0400 Subject: [PATCH] Attempt to fix type error coming from c++ --- benchmarks/test_pauli_string_benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/test_pauli_string_benchmark.py b/benchmarks/test_pauli_string_benchmark.py index 385608e..de46db2 100644 --- a/benchmarks/test_pauli_string_benchmark.py +++ b/benchmarks/test_pauli_string_benchmark.py @@ -127,7 +127,7 @@ def test_apply_n_qubits( # type: ignore[no-untyped-def] def benchmark_apply_batch_cpp(paulis: list, states: list) -> None: """Benchmark apply_batch method.""" for p, psi in zip(paulis, states): - result = p.apply_batch(psi) # noqa: F841 + result = p.apply_batch(psi.tolist()) # noqa: F841 def benchmark_apply_batch_py(paulis: list, states: list) -> None: