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

[PR] [QUMAT] Reuse the initialized Cirq simulator [mahout]

mangeshraut712 opened a new pull request, #1516:
URL: https://github.com/apache/mahout/pull/1516

   ### Related Issues
   
   Closes #1508
   
   ### Changes
   
   - [x] Bug fix
   - [ ] New feature
   - [ ] Refactoring
   - [ ] Documentation
   - [x] Test
   - [ ] CI/CD pipeline
   - [ ] Other
   
   ### Why
   
   `initialize_backend()` returns a Cirq simulator, but `execute_circuit()` and `get_final_state_vector()` ignored that object and built a new `cirq.Simulator()`. Seed and other simulator settings never reached the run.
   
   ### How
   
   Those paths now call `run`, `run_sweep`, and `simulate` on the simulator passed in, the same way the Qiskit and Braket backends use their initialized backend. A regression test checks that a seeded simulator from `initialize_backend()` is the one that runs, and that its seed decides the samples.
   
   ## Checklist
   
   - [x] Added or updated unit tests for all changes
   - [ ] Added or updated documentation for all changes
   


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

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


Re: [PR] [QUMAT] Reuse the initialized Cirq simulator [mahout]

Posted by "400Ping (via GitHub)" <gi...@apache.org>.
400Ping commented on PR #1516:
URL: https://github.com/apache/mahout/pull/1516#issuecomment-6138457773

   This is for hackathon.


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

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


Re: [PR] [QUMAT] Reuse the initialized Cirq simulator [mahout]

Posted by "400Ping (via GitHub)" <gi...@apache.org>.
400Ping closed pull request #1516: [QUMAT] Reuse the initialized Cirq simulator
URL: https://github.com/apache/mahout/pull/1516


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

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