Global AI and Data Science

 View Only
  • 1.  How to modify inputs and weights

    Posted Wed May 01, 2024 01:25 PM

    Hello everyone,

    I was initially running an example of the QNN explained in the link below,

    The Quantum Convolution Neural Network - Qiskit Machine Learning 0.7.2

    However, after the introduction of EstimatorV2, I have been unable to run it in the IBM instance. When I define the estimator in the EstimatorQNN constructor, an error that states "EstimatorV2 needs two parameters instead of four parameters", occurs. Do you have any idea how to modify this part of the QNN? #AI and DS Skills, #Global AI and Data Science

    qnn = EstimatorQNN(
        circuit=circuit.decompose(),
        observables=observable,
    estimator=EstimatorV2(backend=backend), input_params=feature_map.parameters, weight_params=ansatz.parameters, )

      



    ------------------------------
    Alokanand Sharma
    ------------------------------


  • 2.  RE: How to modify inputs and weights

    Community Leadership
    Posted Wed May 22, 2024 10:02 AM

    Hi Alokanand,

    I see that you did not receive a response to your question, were you able to resolve the issue? What product are you using? I will see if I can track down the right person to respond.



    ------------------------------
    Nick Plowden
    AI Community Engagement
    IBM
    ------------------------------