You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "shiavm006 (via GitHub)" <gi...@apache.org> on 2025/11/06 07:25:49 UTC

[I] [Bug] bind_parameters silently ignores unknown parameters causing cryptic errors [mahout]

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: dev-unsubscribe@mahout.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] bind_parameters silently ignores unknown parameters causing cryptic errors [mahout]

Posted by "shiavm006 (via GitHub)" <gi...@apache.org>.
shiavm006 commented on issue #603:
URL: https://github.com/apache/mahout/issues/603#issuecomment-3503297792

   ya i m on slack 
   


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] bind_parameters silently ignores unknown parameters causing cryptic errors [mahout]

Posted by "shiavm006 (via GitHub)" <gi...@apache.org>.
shiavm006 commented on issue #603:
URL: https://github.com/apache/mahout/issues/603#issuecomment-3503188631

   @rawkintrevo  what u think ?
   


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] bind_parameters silently ignores unknown parameters causing cryptic errors [mahout]

Posted by "rawkintrevo (via GitHub)" <gi...@apache.org>.
rawkintrevo commented on issue #603:
URL: https://github.com/apache/mahout/issues/603#issuecomment-3497459849

   Good catch @shiavm006  
   
   Do the underlyings not raise an error when its passed down to them? Would a warning make more sense? (I'm not asserting, just thinking through, I very well may be wrong). 


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] bind_parameters silently ignores unknown parameters causing cryptic errors [mahout]

Posted by "shiavm006 (via GitHub)" <gi...@apache.org>.
shiavm006 commented on issue #603:
URL: https://github.com/apache/mahout/issues/603#issuecomment-3498786590

   @rawkintrevo  
   ah good point! 
   but what i think  is that the wrong param name just gets silently ignored, then the actual param stays as None. depending on the backend you either get a weird KeyError way later  or it actually binds None and things just break quietly.
   


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] bind_parameters silently ignores unknown parameters causing cryptic errors [mahout]

Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming closed issue #603: [Bug] bind_parameters silently ignores unknown parameters causing cryptic errors
URL: https://github.com/apache/mahout/issues/603


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] bind_parameters silently ignores unknown parameters causing cryptic errors [mahout]

Posted by "rawkintrevo (via GitHub)" <gi...@apache.org>.
rawkintrevo commented on issue #603:
URL: https://github.com/apache/mahout/issues/603#issuecomment-3503274785

   Do it (raise an error). 
   
   Also, @shiavm006 are you on the asf slack? we have a community call later today if you want to meet everyone


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] bind_parameters silently ignores unknown parameters causing cryptic errors [mahout]

Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on issue #603:
URL: https://github.com/apache/mahout/issues/603#issuecomment-3500926466

   I think raising an error here makes more sense to fail fast and give clearer feedback.


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org