Skip to content

Commit 9708998

Browse files
committed
removed imports from typing
1 parent 23d2a74 commit 9708998

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Diff for: divide_and_conquer/max_difference_pair.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
from typing import List, Tuple
2-
3-
4-
def max_difference(a: List[int]) -> Tuple[int, int]:
1+
def max_difference(a: list[int]) -> tuple[int, int]:
52
"""
63
We are given an array A[1..n] of integers, n >= 1. We want to
74
find a pair of indices (i, j) such that

Diff for: quantum/ripple_adder_classic.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
# https://en.wikipedia.org/wiki/Adder_(electronics)#Full_adder
33
# https://en.wikipedia.org/wiki/Controlled_NOT_gate
44

5-
from typing import Tuple
6-
75
from qiskit import Aer, QuantumCircuit, execute
86
from qiskit.providers import BaseBackend
97

108

11-
def store_two_classics(val1: int, val2: int) -> Tuple[QuantumCircuit, str, str]:
9+
def store_two_classics(val1: int, val2: int) -> tuple[QuantumCircuit, str, str]:
1210
"""
1311
Generates a Quantum Circuit which stores two classical integers
1412
Returns the circuit and binary representation of the integers

0 commit comments

Comments
 (0)