Skip to content

pauli_transfer_matrices

chalmers_qubit.utils.randomized_benchmarking.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

X_theta(
    theta: float, unit: Literal["deg", "rad"] = "deg"
) -> ndarray

Return the Pauli Transfer Matrix (PTM) of a rotation of angle theta around the X-axis.

Args: theta (float): Rotation angle. unit (str): Unit of the angle, either "deg" for degrees or "rad" for radians.

Returns: np.ndarray: The 4x4 PTM matrix corresponding to the X rotation.

Y_theta

Y_theta(
    theta: float, unit: Literal["deg", "rad"] = "deg"
) -> ndarray

Return the Pauli Transfer Matrix (PTM) of a rotation of angle theta around the Y-axis.

Args: theta (float): Rotation angle. unit (str): Unit of the angle, either "deg" for degrees or "rad" for radians.

Returns: np.ndarray: The 4x4 PTM matrix corresponding to the Y rotation.