UchannelLO#

class qiskit.providers.models.UchannelLO(q, scale)[código fonte]#

Bases: object

Class representing a U Channel LO

q#

Qubit that scale corresponds too.

scale#

Scale factor for qubit frequency.

Initialize a UchannelLOSchema object

Parâmetros:
  • q (int) – Qubit that scale corresponds too. Must be >= 0.

  • scale (complex) – Scale factor for qubit frequency.

Levanta:

QiskitError – If q is < 0

Methods

classmethod from_dict(data)[código fonte]#

Create a new UchannelLO object from a dictionary.

Parâmetros:

data (dict) – A dictionary representing the UChannelLO to create. It will be in the same format as output by to_dict().

Retorno:

The UchannelLO from the input dictionary.

Tipo de retorno:

UchannelLO

to_dict()[código fonte]#

Return a dictionary format representation of the UChannelLO.

Retorno:

The dictionary form of the UChannelLO.

Tipo de retorno:

dict