app.processing.post.sort_imports ================================ .. py:module:: app.processing.post.sort_imports .. autoapi-nested-parse:: Ensure unique imports at the front of the program. Module Contents --------------- .. py:class:: SortImportsTransformer Create unique imports at the top. Makes following changes: - remove duplicate imports - move imports at the top .. py:method:: visit_Include(node: openqasm3.ast.Include) -> None Store and remove all includes. :param node: The statement to process :return: None removes the node .. py:method:: visit_Program(node: openqasm3.ast.Program) -> openqasm3.ast.Program Execute a normal (generic) visit, then add removed imports back.