class_docstr: Tests for the (reduced) density matrix for QNodes returning states.
docstr: Test different complex dtype.
docstr_tok: ["Test","different","complex","dtype","."]
code: def test_density_matrix_c_dtype(self, wires, c_dtype):
      """Test different complex dtype."""
  
      dev = qml.device("default.qubit.legacy", wires=2, c_dtype=c_dtype)
  
      @qml.qnode(dev, diff_method=None)
      def circuit(x):
          qml.IsingXX(x, wires=[0, 1])
          return qml.state()
  
      density_matrix = qml.qinfo.reduced_dm(circuit, wires=wires)(0.5)
      assert density_matrix.dtype == c_dtype
  
file_path: pennylane/tests/qinfo/test_reduced_dm.py
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 7 for calling the TestDensityMatrixQNode obj's underlying member method code with example usage: obj.test_density_matrix_c_dtype(wires, c_dtype) and returns: qml