qat.utils.hardware_model module

apply_setup_to_echo_hardware(qubit_count, connectivity)
Return type:

QuantumHardwareModel

check_type_legacy_or_pydantic(hw_model)
generate_connectivity_data(n_qubits, n_logical_qubits, seed=42)
generate_hw_model(n_qubits, seed=42)
generate_random_linear(qubit_indices)
pick_subconnectivity(connectivity, n, seed=42)
random_connectivity(n, max_degree=3, seed=42)

Generates a random undirected graph but enforcing that the resulting graph is connected.

random_directed_connectivity(n, max_degree=3, seed=42)

Generates a random directed graph but enforcing that the resulting graph is connected.

random_quality_map(connectivity, seed=42)