Skip to main content
IBM Quantum Platform
이 페이지는 Qiskit SDK 의 이전 버전에서 가져온 것으로, 최신 버전에는 존재하지 않습니다. 최신 버전으로 업데이트하시기를 권장합니다. 자세한 정보는 릴리스 정보를 참조하십시오.

GateConfig

class qiskit.providers.models.GateConfig(name, parameters, qasm_def, coupling_map=None, latency_map=None, conditional=None, description=None)

GitHub

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.

Initialize a GateConfig object

Deprecated since version 1.2

The class qiskit.providers.models.backendconfiguration.GateConfig is deprecated as of qiskit 1.2. It will be removed in the 2.0 release. The models in qiskit.providers.models are part of the deprecated BackendV1 workflow and no longer necessary for BackendV2. If a user workflow requires these representations it likely relies on deprecated functionality and should be updated to use BackendV2.

Parameters

  • name (str) – the gate name as it will be referred to in OpenQASM.
  • parameters (list) – 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) – 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) – An optional map of latency for the gate. In the 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) – 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) – Description of the gate operation

Methods

from_dict

classmethod from_dict(data)

GitHub

Create a new GateConfig object from a dictionary.

Parameters

data (dict) – A dictionary representing the GateConfig to create. It will be in the same format as output by to_dict().

Returns

The GateConfig from the input dictionary.

Return type

GateConfig

to_dict

to_dict()

GitHub

Return a dictionary format representation of the GateConfig.

Returns

The dictionary form of the GateConfig.

Return type

dict

이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.