mqt.qudits.compiler.onedit.mapping_un_aware_transpilation.log_local_adaptive_decomp

Module Contents

class LogLocAdaPass(backend: Backend)[source]

Bases: mqt.qudits.compiler.CompilerPass

Helper class that provides a standard way to create an ABC using inheritance.

transpile_gate(gate: Gate) → list[Gate][source]
transpile(circuit: QuantumCircuit) → QuantumCircuit[source]
class LogAdaptiveDecomposition(gate: Gate, graph_orig: LevelGraph, cost_limit: tuple[float, float] = (0, 0), dimension: int = -1, z_prop: bool = False, max_nodes: int = 1000)[source]
max_nodes = 1000
circuit: QuantumCircuit
U: numpy.typing.NDArray[numpy.complex128]
qudit_index: int
graph: LevelGraph
cost_limit: tuple[float, float] = (0, 0)
dimension = -1
phase_propagation: bool = False
TREE: NAryTree
execute() → tuple[list[Gate], tuple[float, float], LevelGraph | None][source]
z_extraction(decomposition: list[Node], placement: LevelGraph | None) → tuple[list[Gate], LevelGraph | None][source]
dfs(current_root: Node) → None[source]