Skip to content

Commit

Permalink
Attempt to fix type error coming from c++
Browse files Browse the repository at this point in the history
  • Loading branch information
stand-by committed Aug 5, 2024
1 parent 8419aa3 commit a5ab3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/test_pauli_string_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a5ab3ce

Please sign in to comment.