3.1.4. qupulse._program.transformation¶
- class qupulse._program.transformation.ChainedTransformation(*transformations)[source]¶
Bases:
qupulse._program.transformation.Transformation
- property compare_key: Tuple[qupulse._program.transformation.Transformation, ...]¶
Implements
compare_key
.- Return type
Tuple
[Transformation
, …]
- get_input_channels(output_channels)[source]¶
Implements
get_input_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- get_output_channels(input_channels)[source]¶
Implements
get_output_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- property transformations: Tuple[qupulse._program.transformation.Transformation, ...]¶
- Return type
Tuple
[Transformation
, …]
- class qupulse._program.transformation.IdentityTransformation[source]¶
Bases:
qupulse._program.transformation.Transformation
- property compare_key: None¶
Implements
compare_key
.- Return type
- get_input_channels(output_channels)[source]¶
Implements
get_input_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- get_output_channels(input_channels)[source]¶
Implements
get_output_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- class qupulse._program.transformation.LinearTransformation(transformation_matrix, input_channels, output_channels)[source]¶
Bases:
qupulse._program.transformation.Transformation
- Parameters
- property compare_key: Tuple[Tuple[Union[str, int]], Tuple[Union[str, int]], bytes]¶
Implements
compare_key
.
- get_input_channels(output_channels)[source]¶
Implements
get_input_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- get_output_channels(input_channels)[source]¶
Implements
get_output_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- class qupulse._program.transformation.OffsetTransformation(offsets)[source]¶
Bases:
qupulse._program.transformation.Transformation
Adds an offset to each channel specified in offsets.
Channels not in offsets are forewarded
- __init__(offsets)[source]¶
Adds an offset to each channel specified in offsets.
Channels not in offsets are forewarded
- property compare_key: frozenset¶
Implements
compare_key
.- Return type
- get_input_channels(output_channels)[source]¶
Implements
get_input_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- get_output_channels(input_channels)[source]¶
Implements
get_output_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- class qupulse._program.transformation.ParallelConstantChannelTransformation(channels)[source]¶
Bases:
qupulse._program.transformation.Transformation
Set channel values to given values regardless their former existence
- Parameters
channels (
Mapping
[Union
[str
,int
],Real
]) – Channels present in this map are set to the given value.
- property compare_key: Tuple[Tuple[Union[str, int], float], ...]¶
Implements
compare_key
.
- get_input_channels(output_channels)[source]¶
Implements
get_input_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- get_output_channels(input_channels)[source]¶
Implements
get_output_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- class qupulse._program.transformation.ScalingTransformation(factors)[source]¶
Bases:
qupulse._program.transformation.Transformation
- property compare_key: frozenset¶
Implements
compare_key
.- Return type
- get_input_channels(output_channels)[source]¶
Implements
get_input_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- get_output_channels(input_channels)[source]¶
Implements
get_output_channels()
.- Return type
AbstractSet
[Union
[str
,int
]]
- class qupulse._program.transformation.Transformation[source]¶
Bases:
qupulse.comparable.Comparable
- abstract get_input_channels(output_channels)[source]¶
Channels that are required for getting data for the requested output channel
- Return type
AbstractSet
[Union
[str
,int
]]