Gray Code
gray_code
Functions:
| Name | Description |
|---|---|
select_rotation |
[Qmod core-library function] |
select_rotation
select_rotation(
basis: Pauli,
angles: CArray[CReal],
selector: 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:
| Name | Type | Description | Default |
|---|---|---|---|
basis
|
Pauli
|
The Pauli operator defining the rotation axis. |
required |
angles
|
CArray[CReal]
|
The list of rotation angles in radians. The list must have length 2**selector.size. |
required |
selector
|
QNum
|
The qubits that act as the selection register. |
required |
target
|
QBit
|
The qubit on which the selected rotation is applied. |
required |