Skip to content

Commit

Permalink
remove a type annotation for compatibility with python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotani-UT committed Sep 10, 2024
1 parent 1db734b commit e4e274a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/python/qiskit_tutorials/algorithms/test_qaoa.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_qaoa():
]
graph.add_edges_from(edge_list)

def build_max_cut_paulis(graph: rx.PyGraph) -> list[tuple[str, float]]:
def build_max_cut_paulis(graph: rx.PyGraph):
"""Convert the graph to Pauli list.
This function does the inverse of `build_max_cut_graph`
Expand Down

0 comments on commit e4e274a

Please sign in to comment.