class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Tests if a QuantumFunctionError is raised if target_wires and estimation_wires contain a
  common element
docstr_tok: ["Tests","if","a","QuantumFunctionError","is","raised","if","target_wires","and","estimation_wires","contain","a","common","element"]
code: def test_same_wires(self):
      """Tests if a QuantumFunctionError is raised if target_wires and estimation_wires contain a
      common element"""
  
      with pytest.raises(
          qml.QuantumFunctionError,
          match="The target wires and estimation wires",
      ):
          qml.QuantumPhaseEstimation(
              np.eye(4), target_wires=[0, 1], estimation_wires=[1, 2]
          )
  
file_path: pennylane/tests/templates/test_subroutines/test_qpe.py
imports: import pytest
  import numpy
  from scipy.stats import unitary_group
  import pennylane
label_desc: Use image node_id 1 for calling the TestInputs obj's underlying member method code with example usage: obj.test_same_wires() without return types