- class GateConfig(name, parameters, qasm_def, coupling_map=None, latency_map=None, conditional=None, description=None)[Quellcode]¶
Class representing a Gate Configuration
the gate name as it will be referred to in Qasm.
variable names for the gate parameters (if any).
definition of this gate in terms of Qasm primitives U and CX.
Initialize a GateConfig object
name (str) – the gate name as it will be referred to in Qasm.
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 Qasm 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
Create a new GateConfig object from a dictionary.
Return a dictionary format representation of the GateConfig.