Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Functions | Variables
gatesupport Namespace Reference

Functions

def cleanup_repo (temp_dir)
 
def download_and_collect_qasm (repo_urls)
 
def squander_gate_support_check ()
 

Variables

dictionary SUPPORTED_GATES = {x for n in dir(gate) for x in (getattr(gate, n),) if not n.startswith("_") and issubclass(x, gate.Gate) and n != "Gate"}
 
dictionary SUPPORTED_GATES_NAMES = {n for n in dir(gate) if not n.startswith("_") and issubclass(getattr(gate, n), gate.Gate) and n != "Gate"}
 

Function Documentation

◆ cleanup_repo()

def gatesupport.cleanup_repo (   temp_dir)
Deletes the temporary repository folder created by download_and_collect_qasm.

Definition at line 61 of file benchmarks/partitioning/gatesupport.py.

Here is the caller graph for this function:

◆ download_and_collect_qasm()

def gatesupport.download_and_collect_qasm (   repo_urls)
Downloads GitHub repositories as zip archives, extracts them into a temporary
directory, and returns the list of all .qasm file paths found, along with
the temp folder path (for later cleanup).

Args:
    repo_urls (list[str]): List of GitHub repository URLs.

Returns:
    (list[str], str): List of QASM file paths and the temp directory path.

Definition at line 14 of file benchmarks/partitioning/gatesupport.py.

Here is the caller graph for this function:

◆ squander_gate_support_check()

def gatesupport.squander_gate_support_check ( )

Definition at line 67 of file benchmarks/partitioning/gatesupport.py.

Here is the call graph for this function:

Variable Documentation

◆ SUPPORTED_GATES

dictionary gatesupport.SUPPORTED_GATES = {x for n in dir(gate) for x in (getattr(gate, n),) if not n.startswith("_") and issubclass(x, gate.Gate) and n != "Gate"}

Definition at line 11 of file benchmarks/partitioning/gatesupport.py.

◆ SUPPORTED_GATES_NAMES

dictionary gatesupport.SUPPORTED_GATES_NAMES = {n for n in dir(gate) if not n.startswith("_") and issubclass(getattr(gate, n), gate.Gate) and n != "Gate"}

Definition at line 12 of file benchmarks/partitioning/gatesupport.py.