78 lines
2.9 KiB
Plaintext
78 lines
2.9 KiB
Plaintext
---
|
||
title: GateProperties (v1.2)
|
||
description: API reference for qiskit.providers.models.GateProperties in qiskit v1.2
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.providers.models.GateProperties
|
||
---
|
||
|
||
# GateProperties
|
||
|
||
<Class id="qiskit.providers.models.GateProperties" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/providers/models/backendproperties.py#L89-L159" signature="qiskit.providers.models.GateProperties(qubits, gate, parameters, **kwargs)" modifiers="class">
|
||
Bases: [`object`](https://docs.python.org/3/library/functions.html#object "(in Python v3.13)")
|
||
|
||
Class representing a gate’s properties
|
||
|
||
### qubits
|
||
|
||
<Attribute id="qiskit.providers.models.GateProperties.qubits">
|
||
qubits.
|
||
</Attribute>
|
||
|
||
### gate
|
||
|
||
<Attribute id="qiskit.providers.models.GateProperties.gate">
|
||
gate.
|
||
</Attribute>
|
||
|
||
### parameters
|
||
|
||
<Attribute id="qiskit.providers.models.GateProperties.parameters">
|
||
parameters.
|
||
</Attribute>
|
||
|
||
Initialize a new [`GateProperties`](#qiskit.providers.models.GateProperties "qiskit.providers.models.GateProperties") object
|
||
|
||
**Parameters**
|
||
|
||
* **qubits** ([*list*](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")) – A list of integers representing qubits
|
||
* **gate** ([*str*](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.13)")) – The gates name
|
||
* **parameters** ([*list*](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")) – List of [`Nduv`](qiskit.providers.models.Nduv "qiskit.providers.models.Nduv") objects for the name-date-unit-value for the gate
|
||
* **kwargs** – Optional additional fields
|
||
|
||
## Methods
|
||
|
||
### from\_dict
|
||
|
||
<Function id="qiskit.providers.models.GateProperties.from_dict" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/providers/models/backendproperties.py#L122-L140" signature="from_dict(data)" modifiers="classmethod">
|
||
Create a new Gate object from a dictionary.
|
||
|
||
**Parameters**
|
||
|
||
**data** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.13)")) – A dictionary representing the Gate to create. It will be in the same format as output by [`to_dict()`](#qiskit.providers.models.GateProperties.to_dict "qiskit.providers.models.GateProperties.to_dict").
|
||
|
||
**Returns**
|
||
|
||
The Nduv from the input dictionary.
|
||
|
||
**Return type**
|
||
|
||
[GateProperties](#qiskit.providers.models.GateProperties "qiskit.providers.models.GateProperties")
|
||
</Function>
|
||
|
||
### to\_dict
|
||
|
||
<Function id="qiskit.providers.models.GateProperties.to_dict" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/providers/models/backendproperties.py#L142-L153" signature="to_dict()">
|
||
Return a dictionary format representation of the BackendStatus.
|
||
|
||
**Returns**
|
||
|
||
The dictionary form of the Gate.
|
||
|
||
**Return type**
|
||
|
||
[dict](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.13)")
|
||
</Function>
|
||
</Class>
|
||
|