class_docstr: Tests matrix applications on states and operations with larger numbers of wires.
class_docstr_tok: ["Tests","matrix","applications","on","states","and","operations","with","larger","numbers","of","wires","."]
docstr: Tests a double excitation operation compared to its decomposition.
docstr_tok: ["Tests","a","double","excitation","operation","compared","to","its","decomposition","."]
code: def test_double_excitation(self, method):
      """Tests a double excitation operation compared to its decomposition."""
  
      op = qml.DoubleExcitation(np.array(2.14), wires=(3, 1, 2, 0))
  
      state_v1 = method(op, self.state)
  
      state_v2 = self.state
      for d_op in op.decomposition():
          state_v2 = method(d_op, state_v2)
  
      assert qml.math.allclose(state_v1, state_v2)
  
imports: from functools import reduce
  import pytest
  import numpy
  from scipy.stats import unitary_group
  import pennylane
  from pennylane.operation import _UNSET_BATCH_SIZE, Operation
  from pennylane.devices.qubit.apply_operation import apply_operation, apply_operation_einsum, apply_operation_tensordot
label_desc: Use image node_id 2 for calling the TestLargerOperations obj's underlying member method code with example usage: obj.test_double_excitation(method) without return types