mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-01 20:38:40 +00:00
removed imports from typing
This commit is contained in:
parent
23d2a74f10
commit
97089981c6
@ -1,7 +1,4 @@
|
|||||||
from typing import List, Tuple
|
def max_difference(a: list[int]) -> tuple[int, int]:
|
||||||
|
|
||||||
|
|
||||||
def max_difference(a: List[int]) -> Tuple[int, int]:
|
|
||||||
"""
|
"""
|
||||||
We are given an array A[1..n] of integers, n >= 1. We want to
|
We are given an array A[1..n] of integers, n >= 1. We want to
|
||||||
find a pair of indices (i, j) such that
|
find a pair of indices (i, j) such that
|
||||||
|
@ -2,13 +2,11 @@
|
|||||||
# https://en.wikipedia.org/wiki/Adder_(electronics)#Full_adder
|
# https://en.wikipedia.org/wiki/Adder_(electronics)#Full_adder
|
||||||
# https://en.wikipedia.org/wiki/Controlled_NOT_gate
|
# https://en.wikipedia.org/wiki/Controlled_NOT_gate
|
||||||
|
|
||||||
from typing import Tuple
|
|
||||||
|
|
||||||
from qiskit import Aer, QuantumCircuit, execute
|
from qiskit import Aer, QuantumCircuit, execute
|
||||||
from qiskit.providers import BaseBackend
|
from qiskit.providers import BaseBackend
|
||||||
|
|
||||||
|
|
||||||
def store_two_classics(val1: int, val2: int) -> Tuple[QuantumCircuit, str, str]:
|
def store_two_classics(val1: int, val2: int) -> tuple[QuantumCircuit, str, str]:
|
||||||
"""
|
"""
|
||||||
Generates a Quantum Circuit which stores two classical integers
|
Generates a Quantum Circuit which stores two classical integers
|
||||||
Returns the circuit and binary representation of the integers
|
Returns the circuit and binary representation of the integers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user