exa.core.experiment.utils.setting_utils.get_gate_node_for_locus

exa.core.experiment.utils.setting_utils.get_gate_node_for_locus#

get_gate_node_for_locus(locus, settings, gate, implementation=None)#

Get the gate settingNode for the locus given as a parameter if it exists in the settings tree.

Parameters:
  • locus (str | Iterable[str]) – Individual qubits, couplers, or combinations.

  • settings (SettingNode) – The gate settings tree.

  • gate (str) – The gate to retrieve the settings for.

  • implementation (str | None) – Using a custom rather than the default gate implementation.

Returns:

The settings of the specified locus and gate.

Return type:

SettingNode