qiskit-documentation/docs/api/qiskit/0.31/qiskit.qobj.GateCalibration...

64 lines
2.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: GateCalibration (v0.31)
description: API reference for qiskit.qobj.GateCalibration in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.qobj.GateCalibration
---
# GateCalibration
<Class id="qiskit.qobj.GateCalibration" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/qobj/qasm_qobj.py" signature="GateCalibration(name, qubits, params, instructions)" modifiers="class">
Bases: `object`
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.
## Methods
<span id="qiskit-qobj-gatecalibration-from-dict" />
### from\_dict
<Function id="qiskit.qobj.GateCalibration.from_dict" signature="GateCalibration.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>
<span id="qiskit-qobj-gatecalibration-to-dict" />
### to\_dict
<Function id="qiskit.qobj.GateCalibration.to_dict" signature="GateCalibration.to_dict()">
Return a dictionary format representation of the Gate Calibration.
**Returns**
The dictionary form of the GateCalibration.
**Return type**
dict
</Function>
</Class>