Skip to content

Commit

Permalink
Remove redundant cast
Browse files Browse the repository at this point in the history
  • Loading branch information
francescsabater committed Jan 24, 2024
1 parent dbf42cc commit 5bb650e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mitiq/interface/mitiq_qibo/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5bb650e

Please sign in to comment.