---
title: GateConfig (latest version)
description: API reference for qiskit_ibm_runtime.models.GateConfig in the latest version of qiskit-ibm-runtime
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit-ibm-runtime/models-gate-config
---

# GateConfig

*class* `GateConfig(name, parameters, qasm_def, coupling_map=None, latency_map=None, conditional=None, description=None)`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/models/backend_configuration.py#L31-L126)

Bases: `object`

Class representing a Gate Configuration.

### name

the gate name as it will be referred to in OpenQASM.

### parameters

variable names for the gate parameters (if any).

### qasm\_def

definition of this gate in terms of OpenQASM 2 primitives U and CX.

**Parameters**

- **name** (*str*) – the gate name as it will be referred to in OpenQASM.
- **parameters** (*list\[str]*) – variable names for the gate parameters (if any) as a list of strings.
- **qasm\_def** (*str*) – definition of this gate in terms of OpenQASM 2 primitives U and CX.
- **coupling\_map** (*list | None*) – An optional coupling map for the gate. In the form of a list of lists of integers representing the qubit groupings which are coupled by this gate.
- **latency\_map** (*list | None*) – An optional map of latency for the gate. In the form of a list of lists of integers of either 0 or 1 representing an array of dimension len(coupling\_map) X n\_registers that specifies the register latency (1: fast, 0: slow) conditional operations on the gate.
- **conditional** (*bool | None*) – Optionally specify whether this gate supports conditional operations (true/false). If this is not specified, then the gate inherits the conditional property of the backend.
- **description** (*str | None*) – Description of the gate operation

## Methods

### from\_dict

*classmethod* `from_dict(data)`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/models/backend_configuration.py#L80-L91)

Create a new GateConfig object from a dictionary.

**Parameters**

**data** (*dict\[str, Any]*) – A dictionary representing the GateConfig to create. It will be in the same format as output by [`to_dict()`](#qiskit_ibm_runtime.models.GateConfig.to_dict "qiskit_ibm_runtime.models.GateConfig.to_dict").

**Returns**

The GateConfig from the input dictionary.

**Return type**

*GateConfigT*

### to\_dict

`to_dict()`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/models/backend_configuration.py#L93-L112)

Return a dictionary format representation of the GateConfig.

**Returns**

The dictionary form of the GateConfig.

**Return type**

dict\[str, *Any*]
