ZXZXZDecomposition
- class ZXZXZDecomposition(always_use_rx=False, always_use_u1=False)[source]
Bases:
BasePass
The ZXZXZDecomposition class.
Convert a single-qubit circuit to ZXZXZ sequence.
- __init__(always_use_rx=False, always_use_u1=False)[source]
Construct a ZXZXZDecomposition pass.
- Parameters:
always_use_rx (
bool
) – If True, always use RX instead of SX.always_use_u1 (
bool
) – If True, always use U1 instead of RZ.
Attributes
The name of the pass.
Methods
execute
(*args, **kwargs)Map a function over iterable arguments in parallel.
get_connectivity
(_, data)Retrieve the current connectivity of the circuit.
get_model
(_, data)Retrieve the machine model from the data dictionary.
get_placement
(_, data)Retrieve the logical to physical qubit map from the data dictionary.
get_target
(_, data)Retrieve the target from the data dictionary.
in_parallel
(data)Return true if pass is being executed in a parallel.
run
(circuit, data)Perform the pass's operation, see
BasePass
for more.