You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mahout.apache.org by "400Ping (via GitHub)" <gi...@apache.org> on 2026/10/13 02:10:02 UTC

[I] [Bug] Unsupported simulator_type is printed and ignored instead of raising (Cirq, Braket) [mahout]

400Ping opened a new issue, #1507:
URL: https://github.com/apache/mahout/issues/1507

   ### What
   
   The Cirq and Amazon Braket backends `print()` a message and continue when they receive a `simulator_type` they do not support, instead of raising:
   
   ```python
   from qumat import QuMat
   
   QuMat({"backend_name": "cirq", "backend_options": {"simulator_type": "density_matrix"}})
   # prints: Simulator type 'density_matrix' is not supported in Cirq. Ignoring this argument
   # ...and runs anyway with the default simulator
   
   QuMat({"backend_name": "amazon_braket", "backend_options": {"simulator_type": "sv1"}})
   # prints: "... Using default.", falls back to the AWS SV1 device,
   # then fails later with botocore NoRegionError
   ```
   
   **Actual result:** the invalid option is silently ignored (Cirq) or replaced by a remote device that then fails for an unrelated reason (Braket). The message goes to stdout, so it is invisible in notebooks that capture output and in test suites.
   
   **Expected result:** an unsupported `simulator_type` raises a `ValueError` that lists the supported values for that backend (or at minimum emits `warnings.warn`), consistently across all three backends.
   
   **Where:** `qumat/cirq_backend.py` (around line 33) and `qumat/amazon_braket_backend.py` (around line 50). Add tests for the error path in `testing/qumat/`.
   
   ### Environment
   
   - OS: macOS 14 / Linux
   - Python version: 3.12
   - Qumat version: 0.6.0 (PyPI) and `main` at 2d94f8fbd
   
   _Part of the Apache Mahout hackathon at Community over Code Glasgow 2026 (Track A, Qumat). Comment here to claim it._
   


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

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


Re: [I] [Bug] Unsupported simulator_type is printed and ignored instead of raising (Cirq, Braket) [mahout]

Posted by "400Ping (via GitHub)" <gi...@apache.org>.
400Ping closed issue #1507: [Bug] Unsupported simulator_type is printed and ignored instead of raising (Cirq, Braket)
URL: https://github.com/apache/mahout/issues/1507


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

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