77 lines
3.5 KiB
Plaintext
77 lines
3.5 KiB
Plaintext
---
|
||
title: GateCalibration
|
||
description: API reference for qiskit.qobj.GateCalibration
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.qobj.GateCalibration
|
||
---
|
||
|
||
# qiskit.qobj.GateCalibration
|
||
|
||
<Class id="qiskit.qobj.GateCalibration" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/qobj/qasm_qobj.py" signature="GateCalibration(name, qubits, params, instructions)" modifiers="class">
|
||
Each calibration specifies a unique gate by name, qubits and params, and contains the Pulse instructions to implement it.
|
||
|
||
Initialize a single gate calibration. Instructions may reference waveforms which should be made available in the pulse\_library.
|
||
|
||
**Parameters**
|
||
|
||
* **name** (*str*) – Gate name.
|
||
* **qubits** (*list(int)*) – Qubits the gate applies to.
|
||
* **params** (*list(complex)*) – Gate parameter values, if any.
|
||
* **instructions** (*list(*[*PulseQobjInstruction*](qiskit.qobj.PulseQobjInstruction "qiskit.qobj.PulseQobjInstruction")*)*) – The gate implementation.
|
||
|
||
### \_\_init\_\_
|
||
|
||
<Function id="qiskit.qobj.GateCalibration.__init__" signature="__init__(name, qubits, params, instructions)">
|
||
Initialize a single gate calibration. Instructions may reference waveforms which should be made available in the pulse\_library.
|
||
|
||
**Parameters**
|
||
|
||
* **name** (*str*) – Gate name.
|
||
* **qubits** (*list(int)*) – Qubits the gate applies to.
|
||
* **params** (*list(complex)*) – Gate parameter values, if any.
|
||
* **instructions** (*list(*[*PulseQobjInstruction*](qiskit.qobj.PulseQobjInstruction "qiskit.qobj.PulseQobjInstruction")*)*) – The gate implementation.
|
||
</Function>
|
||
|
||
## Methods
|
||
|
||
| | |
|
||
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |
|
||
| [`__init__`](#qiskit.qobj.GateCalibration.__init__ "qiskit.qobj.GateCalibration.__init__")(name, qubits, params, instructions) | Initialize a single gate calibration. |
|
||
| [`from_dict`](#qiskit.qobj.GateCalibration.from_dict "qiskit.qobj.GateCalibration.from_dict")(data) | Create a new GateCalibration object from a dictionary. |
|
||
| [`to_dict`](#qiskit.qobj.GateCalibration.to_dict "qiskit.qobj.GateCalibration.to_dict")() | Return a dictionary format representation of the Gate Calibration. |
|
||
|
||
### from\_dict
|
||
|
||
<Function id="qiskit.qobj.GateCalibration.from_dict" signature="from_dict(data)" modifiers="classmethod">
|
||
Create a new GateCalibration object from a dictionary.
|
||
|
||
**Parameters**
|
||
|
||
**data** (*dict*) – A dictionary representing the GateCalibration to create. It will be in the same format as output by [`to_dict()`](#qiskit.qobj.GateCalibration.to_dict "qiskit.qobj.GateCalibration.to_dict").
|
||
|
||
**Returns**
|
||
|
||
The GateCalibration from the input dictionary.
|
||
|
||
**Return type**
|
||
|
||
[GateCalibration](#qiskit.qobj.GateCalibration "qiskit.qobj.GateCalibration")
|
||
</Function>
|
||
|
||
### to\_dict
|
||
|
||
<Function id="qiskit.qobj.GateCalibration.to_dict" signature="to_dict()">
|
||
Return a dictionary format representation of the Gate Calibration.
|
||
|
||
**Returns**
|
||
|
||
The dictionary form of the GateCalibration.
|
||
|
||
**Return type**
|
||
|
||
dict
|
||
</Function>
|
||
</Class>
|
||
|