From 5bb650e291f2670654d9f28c71e5decde0c7eb09 Mon Sep 17 00:00:00 2001 From: Francesc Date: Wed, 24 Jan 2024 18:01:12 +0100 Subject: [PATCH] Remove redundant cast --- mitiq/interface/mitiq_qibo/conversions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitiq/interface/mitiq_qibo/conversions.py b/mitiq/interface/mitiq_qibo/conversions.py index a8fa878606..02438d71fc 100644 --- a/mitiq/interface/mitiq_qibo/conversions.py +++ b/mitiq/interface/mitiq_qibo/conversions.py @@ -452,7 +452,7 @@ def _parse_qasm_modified(qasm_code: str) -> Tuple[int, List[Tuple[str, List[int] if registers[register] is not None: cast(Dict[str, Dict[int, int]],registers) cast(Dict[int, int], registers[register]) - registers[register][idx] = cast(int,qubits[qubit]) + registers[register][idx] = qubits[qubit] else: registers[register] = {idx: qubits[qubit]} gate_list.append(("M", [0], register))