shiavm006 opened a new issue, #603:
URL: https://github.com/apache/mahout/issues/603

   ### Description
   
   The `bind_parameters` method silently ignores parameter names that don't 
exist in the circuit. When users pass incorrect parameter names (typos, wrong 
names, etc.), no error is raised. This causes the parameter to remain unbound 
(`None`), leading to cryptic errors later during circuit execution deep in 
backend code.
   
   ### Steps to Reproduce
   
   1. Create a parameterized quantum circuit and add a parameterized gate
   2. Call `execute_circuit()` with an incorrect parameter name (typo or wrong 
name)
   3. Observe that no error is raised during parameter binding
   4. Circuit execution fails with cryptic error message
   
   **Example code:**
   ```python
   from qumat import QuMat
   
   config = {
       "backend_name": "qiskit",
       "backend_options": {"simulator_type": "aer_simulator", "shots": 1024}
   }
   qumat = QuMat(config)
   qumat.create_empty_circuit(1)
   qumat.apply_rx_gate(0, "theta")
   
   # Execute with TYPO: "thta" instead of "theta"
   result = qumat.execute_circuit({"thta": 3.14})
   ```
   
   ### Expected Behavior
   
   Should raise an immediate, clear error message:
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to