CouplingGraph.is_valid_coupling_graph
- static CouplingGraph.is_valid_coupling_graph(coupling_graph, num_qudits=None)[source]
Return true if the coupling graph is valid.
- Parameters:
coupling_graph (
Any
) – The coupling graph to check.num_qudits (
int | None
) – The total number of qudits. All qudits should be less than this. If None, don’t check.
- Returns:
Valid or not
- Return type:
bool