def diagonalizing_gates(self):
    'Return the gate set that diagonalizes a circuit according to the\n        specified tensor observable.\n\n        This method uses pre-stored eigenvalues for standard observables where\n        possible and stores the corresponding eigenvectors from the eigendecomposition.\n\n        Returns:\n            list: list containing the gates diagonalizing the tensor observable\n        '
    diag_gates = []
    for o in self.obs:
        diag_gates.extend(o.diagonalizing_gates())
    return diag_gates
Return the gate set that diagonalizes a circuit according to the
specified tensor observable.

This method uses pre-stored eigenvalues for standard observables where
possible and stores the corresponding eigenvectors from the eigendecomposition.

Returns:
    list: list containing the gates diagonalizing the tensor observable
def diagonalizing_gates(self):
    'Return the gate set that diagonalizes a circuit according to the\n        specified tensor observable.\n\n        This method uses pre-stored eigenvalues for standard observables where\n        possible and stores the corresponding eigenvectors from the eigendecomposition.\n\n        Returns:\n            list: list containing the gates diagonalizing the tensor observable\n        '
    diag_gates = []
    for o in self.obs:
        diag_gates.extend(o.diagonalizing_gates())
    return diag_gates