class_docstr: Tests for the (reduced) density matrix for matrix.
class_docstr_tok: ["Tests","for","the","(","reduced",")","density","matrix","for","matrix","."]
docstr: Test the reduced_dm with matrix for full wires.
docstr_tok: ["Test","the","reduced_dm","with","matrix","for","full","wires","."]
code: def test_reduced_dm_with_matrix_full_wires(
      self, density_matrix, wires
  ):
      """Test the reduced_dm with matrix for full wires."""
      returned_density_matrix = fn.reduce_dm(
          density_matrix, indices=wires
      )
      expected = density_matrix
      if wires == [1, 0]:
          expected = permute_two_qubit_dm(expected)
      assert np.allclose(returned_density_matrix, expected)
  
imports: import numpy
  import pytest
  from pennylane import numpy
  from pennylane import math
label_desc: Use image node_id 2 for calling the TestDensityMatrixFromMatrix obj's underlying member method code with example usage: obj.test_reduced_dm_with_matrix_full_wires(density_matrix, wires) without return types