pauli_transfer_matrices
tergite_autocalibration.lib.nodes.coupler.tqg_randomized_benchmarking.utils.pauli_transfer_matrices
Functions:
| Name | Description |
|---|---|
X_theta |
Return the Pauli Transfer Matrix (PTM) of a rotation of angle theta |
Y_theta |
Return the Pauli Transfer Matrix (PTM) of a rotation of angle theta |
X_theta
Return the Pauli Transfer Matrix (PTM) of a rotation of angle theta around the X-axis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
theta
|
float
|
Rotation angle. |
required |
unit
|
str
|
Unit of the angle, either "deg" for degrees or "rad" for radians. |
'deg'
|
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: The 4x4 PTM matrix corresponding to the X rotation. |
Y_theta
Return the Pauli Transfer Matrix (PTM) of a rotation of angle theta around the Y-axis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
theta
|
float
|
Rotation angle. |
required |
unit
|
str
|
Unit of the angle, either "deg" for degrees or "rad" for radians. |
'deg'
|
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: The 4x4 PTM matrix corresponding to the Y rotation. |