iqm.benchmarks.entanglement.ghz_optimal.select_ghz_tree

iqm.benchmarks.entanglement.ghz_optimal.select_ghz_tree#

iqm.benchmarks.entanglement.ghz_optimal.select_ghz_tree(qubit_layout: Sequence[int], backend: IQMBackendBase, metrics: Mapping[str, Mapping[int | tuple[int, int], float]], num_qubits: int | None = None, options: TreeSearchOptions | None = None, rank: int = 0) → TreeCandidate#

Choose the qubits, the tree and the gate order of the GHZ state.

Parameters:
Returns:

The chosen candidate.

Raises:

ValueError – If options.objective is not one of TREE_OBJECTIVES.

Return type:

TreeCandidate