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: [email protected]

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

Reply via email to