class_docstr: Tests for Fidelity function between two states (state vectors or density matrix).
docstr: Test broadcasting works for fidelity and state vectors when one input is unbatched
code: def test_broadcast_sv_sv_unbatched(self, check_state, func):
      """Test broadcasting works for fidelity and state vectors when one input is unbatched"""
      state0 = func([1, 0])
      state1 = func([[0, 1], [1, 0], [1, 1] / np.sqrt(2)])
      expected = [0, 1, 0.5]
  
      fidelity = qml.math.fidelity_statevector(
          state0, state1, check_state
      )
      assert qml.math.allclose(fidelity, expected)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 12 for calling the TestFidelityMath obj's underlying member method code with example usage: obj.test_broadcast_sv_sv_unbatched(check_state, func) without return types