Skip to main content
Functions:
NameDescription
select_rotation[Qmod core-library function].
select_z_rotation[Qmod core-library function].

select_rotation

select_rotation(
basis: Pauli,
angles: CArray[CReal],
selector: Const[QNum],
target: QBit
) -> None
[Qmod core-library function] Applies a set of controlled single-qubit rotations to a target qubit, using a specified rotation axis and a list of rotation angles. Parameters:
NameTypeDescriptionDefault
basisPauliThe Pauli operator defining the rotation axis.required
anglesCArray[CReal]The list of rotation angles in radians. The list must have length 2**selector.size.required
selectorConst[QNum]The qubits that act as the selection register.required
targetQBitThe qubit on which the selected rotation is applied.required

select_z_rotation

select_z_rotation(
angles: CArray[CReal],
selector: Const[QNum],
target: Const[QBit]
) -> None
[Qmod core-library function] Applies a set of controlled single-qubit Z rotations to a target qubit, using a list of rotation angles. Parameters:
NameTypeDescriptionDefault
anglesCArray[CReal]The list of rotation angles in radians. The list must have length 2**selector.size.required
selectorConst[QNum]The qubits that act as the selection register.required
targetConst[QBit]The qubit on which the selected rotation is applied.required