class_docstr: Tests for Fidelity function between two states (state vectors or density matrix).
docstr: Test that a message is raised when a state does not have right norm
code: def test_state_vector_wrong_amplitudes(self, state0, state1):
      """Test that a message is raised when a state does not have right norm"""
      with pytest.raises(
          ValueError,
          match="Sum of amplitudes-squared does not equal one.",
      ):
          qml.math.fidelity_statevector(
              state0, state1, check_state=True
          )
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 3 for calling the TestFidelityMath obj's underlying member method code with example usage: obj.test_state_vector_wrong_amplitudes(state0, state1) without return types