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

74 lines
2.6 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: UchannelLO
description: API reference for qiskit.providers.models.UchannelLO
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.providers.models.UchannelLO
---
# UchannelLO
<Class id="qiskit.providers.models.UchannelLO" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/stable/1.1/qiskit/providers/models/backendconfiguration.py#L136-L192" signature="qiskit.providers.models.UchannelLO(q, scale)" modifiers="class">
Bases: [`object`](https://docs.python.org/3/library/functions.html#object "(in Python v3.12)")
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*](https://docs.python.org/3/library/functions.html#int "(in Python v3.12)")) Qubit that scale corresponds too. Must be >= 0.
* **scale** ([*complex*](https://docs.python.org/3/library/functions.html#complex "(in Python v3.12)")) Scale factor for qubit frequency.
**Raises**
[**QiskitError**](exceptions#qiskit.exceptions.QiskitError "qiskit.exceptions.QiskitError") If q is \< 0
## Methods
### from\_dict
<Function id="qiskit.providers.models.UchannelLO.from_dict" github="https://github.com/Qiskit/qiskit/tree/stable/1.1/qiskit/providers/models/backendconfiguration.py#L159-L171" signature="from_dict(data)" modifiers="classmethod">
Create a new UchannelLO object from a dictionary.
**Parameters**
**data** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.12)")) 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" github="https://github.com/Qiskit/qiskit/tree/stable/1.1/qiskit/providers/models/backendconfiguration.py#L173-L183" signature="to_dict()">
Return a dictionary format representation of the UChannelLO.
**Returns**
The dictionary form of the UChannelLO.
**Return type**
[dict](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.12)")
</Function>
</Class>