3.1.4. qupulse._program.transformation¶
-
class
qupulse._program.transformation.
ChainedTransformation
(*transformations)[source]¶ Bases:
qupulse._program.transformation.Transformation
-
property
compare_key
¶ Implements
compare_key
.- Return type
Tuple
[Transformation
, …]
-
get_input_channels
(output_channels)[source]¶ Implements
get_input_channels()
.
-
get_output_channels
(input_channels)[source]¶ Implements
get_output_channels()
.
-
property
transformations
¶ - Return type
Tuple
[Transformation
, …]
-
property
-
class
qupulse._program.transformation.
IdentityTransformation
[source]¶ Bases:
qupulse._program.transformation.Transformation
-
property
compare_key
¶ Implements
compare_key
.- Return type
None
-
get_input_channels
(output_channels)[source]¶ Implements
get_input_channels()
.
-
property
-
class
qupulse._program.transformation.
LinearTransformation
(transformation_matrix, input_channels, output_channels)[source]¶ Bases:
qupulse._program.transformation.Transformation
- Parameters
-
property
compare_key
¶ Implements
compare_key
.
-
get_input_channels
(output_channels)[source]¶ Implements
get_input_channels()
.
-
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
¶ Implements
compare_key
.- Return type
-
get_input_channels
(output_channels)[source]¶ Implements
get_input_channels()
.
-
get_output_channels
(input_channels)[source]¶ Implements
get_output_channels()
.
-
-
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.
-
get_input_channels
(output_channels)[source]¶ Implements
get_input_channels()
.
-
class
qupulse._program.transformation.
ScalingTransformation
(factors)[source]¶ Bases:
qupulse._program.transformation.Transformation
-
property
compare_key
¶ Implements
compare_key
.- Return type
-
get_input_channels
(output_channels)[source]¶ Implements
get_input_channels()
.
-
get_output_channels
(input_channels)[source]¶ Implements
get_output_channels()
.
-
property
-
class
qupulse._program.transformation.
Transformation
[source]¶