class_docstr: Tests the _generalized_pauli_decompose via pauli_decompose function
docstr: Test builtins support in pauli_decompose
docstr_tok: ["Test","builtins","support","in","pauli_decompose"]
code: def test_builtins(self, matrix):
      """Test builtins support in pauli_decompose"""
  
      import jax
      import torch
      import tensorflow as tf
  
      libraries = [np.array, jax.numpy.array, torch.tensor, tf.Variable]
      matrices = [
          [[library(i) for i in row] for row in matrix]
          for library in libraries
      ]
  
      interfaces = ["numpy", "jax", "torch", "tensorflow"]
      for mat, interface in zip(matrices, interfaces):
          coeffs = qml.pauli_decompose(mat).coeffs
          assert qml.math.get_interface(coeffs[0]) == interface
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.operation import Tensor
  from pennylane.ops import Identity, PauliX, PauliY, PauliZ
  from pennylane.pauli import pauli_sentence, PauliWord, PauliSentence
  from pennylane.pauli.conversion import _generalized_pauli_decompose
label_desc: Use image node_id 13 for calling the TestPhasedDecomposition obj's underlying member method code with example usage: obj.test_builtins(matrix) without return types