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

60 lines
2.8 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
description: API reference for qiskit.qobj.GateCalibration
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/1.1/qiskit/qobj/qasm_qobj.py#L487-L540" signature="qiskit.qobj.GateCalibration(name, qubits, params, instructions)" modifiers="class">
Bases: [`object`](https://docs.python.org/3/library/functions.html#object "(in Python v3.12)")
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*](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.12)")) Gate name.
* **qubits** ([*list*](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.12)")*(*[*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.12)")*)*) Qubits the gate applies to.
* **params** ([*list*](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.12)")*(*[*complex*](https://docs.python.org/3/library/functions.html#complex "(in Python v3.12)")*)*) Gate parameter values, if any.
* **instructions** ([*list*](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.12)")*(*[*PulseQobjInstruction*](qiskit.qobj.PulseQobjInstruction "qiskit.qobj.PulseQobjInstruction")*)*) The gate implementation.
## Methods
### from\_dict
<Function id="qiskit.qobj.GateCalibration.from_dict" github="https://github.com/Qiskit/qiskit/tree/stable/1.1/qiskit/qobj/qasm_qobj.py#L527-L540" signature="from_dict(data)" modifiers="classmethod">
Create a new GateCalibration object from a dictionary.
**Parameters**
**data** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.12)")) 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" github="https://github.com/Qiskit/qiskit/tree/stable/1.1/qiskit/qobj/qasm_qobj.py#L517-L525" signature="to_dict()">
Return a dictionary format representation of the Gate Calibration.
**Returns**
The dictionary form of the GateCalibration.
**Return type**
[dict](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.12)")
</Function>
</Class>