class_docstr: Tests for creating a density matrix from state vectors.
class_docstr_tok: ["Tests","for","creating","a","density","matrix","from","state","vectors","."]
docstr: Test that wrong shaped state vector raises an error with check_state=True
docstr_tok: ["Test","that","wrong","shaped","state","vector","raises","an","error","with","check_state=True"]
code: def test_state_vector_wrong_shape(self):
      """Test that wrong shaped state vector raises an error with check_state=True"""
      state_vector = [1, 0, 0]
  
      with pytest.raises(ValueError, match="State vector must be"):
          fn.quantum.reduce_statevector(
              state_vector, indices=[0], check_state=True
          )
  
imports: import numpy
  import pytest
  from pennylane import numpy
  from pennylane import math
label_desc: Use image node_id 6 for calling the TestDensityMatrixFromStateVectors obj's underlying member method code with example usage: obj.test_state_vector_wrong_shape() without return types