qiskit-documentation/docs/api/qiskit/0.26/qiskit.providers.models.Uch...

95 lines
3.2 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: UchannelLO (v0.26)
description: API reference for qiskit.providers.models.UchannelLO in qiskit v0.26
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.providers.models.UchannelLO
---
<span id="qiskit-providers-models-uchannello" />
# qiskit.providers.models.UchannelLO
<Class id="qiskit.providers.models.UchannelLO" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/providers/models/backendconfiguration.py" signature="UchannelLO(q, scale)" modifiers="class">
Class representing a U Channel LO
### q
<Attribute id="qiskit.providers.models.UchannelLO.q">
Qubit that scale corresponds too.
</Attribute>
### scale
<Attribute id="qiskit.providers.models.UchannelLO.scale">
Scale factor for qubit frequency.
</Attribute>
Initialize a UchannelLOSchema object
**Parameters**
* **q** (*int*) Qubit that scale corresponds too. Must be >= 0.
* **scale** (*complex*) Scale factor for qubit frequency.
**Raises**
**QiskitError** If q is \< 0
### \_\_init\_\_
<Function id="qiskit.providers.models.UchannelLO.__init__" signature="__init__(q, scale)">
Initialize a UchannelLOSchema object
**Parameters**
* **q** (*int*) Qubit that scale corresponds too. Must be >= 0.
* **scale** (*complex*) Scale factor for qubit frequency.
**Raises**
**QiskitError** If q is \< 0
</Function>
## Methods
| | |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------ |
| [`__init__`](#qiskit.providers.models.UchannelLO.__init__ "qiskit.providers.models.UchannelLO.__init__")(q, scale) | Initialize a UchannelLOSchema object |
| [`from_dict`](#qiskit.providers.models.UchannelLO.from_dict "qiskit.providers.models.UchannelLO.from_dict")(data) | Create a new UchannelLO object from a dictionary. |
| [`to_dict`](#qiskit.providers.models.UchannelLO.to_dict "qiskit.providers.models.UchannelLO.to_dict")() | Return a dictionary format representation of the UChannelLO. |
### from\_dict
<Function id="qiskit.providers.models.UchannelLO.from_dict" signature="from_dict(data)" modifiers="classmethod">
Create a new UchannelLO object from a dictionary.
**Parameters**
**data** (*dict*) A dictionary representing the UChannelLO to create. It will be in the same format as output by [`to_dict()`](#qiskit.providers.models.UchannelLO.to_dict "qiskit.providers.models.UchannelLO.to_dict").
**Returns**
The UchannelLO from the input dictionary.
**Return type**
[UchannelLO](#qiskit.providers.models.UchannelLO "qiskit.providers.models.UchannelLO")
</Function>
### to\_dict
<Function id="qiskit.providers.models.UchannelLO.to_dict" signature="to_dict()">
Return a dictionary format representation of the UChannelLO.
**Returns**
The dictionary form of the UChannelLO.
**Return type**
dict
</Function>
</Class>