viiccwen commented on issue #862:
URL: https://github.com/apache/mahout/issues/862#issuecomment-3766259974

   Hi @shiavm006 , thanks for reporting this issue.
   
   Please verified this on the **latest version**, and the backend_config 
validation is now working as expected since #807 .
   Please make sure you update to the most recent code.
   
   Here are the current behaviors when providing invalid `backend_config`:
   
   **1. Missing `backend_name`:**
   
   ```text
   KeyError: "backend_config is missing required key 'backend_name'. Please 
provide a backend name (e.g., 'qiskit', 'cirq', 'amazon_braket')"
   ```
   
   **2. Invalid type (e.g. `None`):**
   
   ```text
   ValueError: backend_config must be a dictionary, got NoneType
   ```
   
   **3. Missing `backend_options`:**
   
   ```text
   KeyError: "backend_config is missing required key 'backend_options'. Please 
provide a dictionary with backend-specific options"
   ```
   
   These match the expectations defined in 
`testing/qumat/test_create_circuit.py`:
   
   * Non-dict β†’ `ValueError`
   * Missing required keys β†’ `KeyError` with helpful messages
   
   If you are still seeing the old behavior (e.g. generic `TypeError` or bare 
`KeyError`), it’s likely you are running an older version.
   Please update and try again.
   
   Let me know if the issue persists after upgrading. πŸ™Œ
   


-- 
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