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/12/24 17:32:46 UTC
[PR] MAHOUT-679 : Fix draw_circuit() to return visualization string instead of None [mahout]
shiavm006 opened a new pull request, #757:
URL: https://github.com/apache/mahout/pull/757
### Purpose of PR
Fix `draw_circuit()` method to return visualization string instead of None. The method was printing the circuit visualization but returning `None`, which contradicted the docstring that claimed it returns a visualization object. Now all backends (Qiskit, Cirq, Amazon Braket) return the visualization string as documented, allowing users to capture and use the return value.
### Related Issues or PRs
- Closes #679
### Changes Made
- [x] Bug fix
- [ ] New feature
- [ ] Refactoring
- [ ] Documentation
- [ ] Test
- [ ] CI/CD pipeline
- [ ] Other
### Breaking Changes
- [ ] Yes
- [x] No
### Checklist
- [x] Added or updated unit tests for all changes
- [ ] Added or updated documentation for all changes
- [x] Successfully built and ran all unit tests or manual tests locally
- [x] PR title follows "MAHOUT-XXX: Brief Description" format (if related to an issue)
- [x] Code follows ASF guidelines
--
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: [PR] MAHOUT-679 : Fix draw_circuit() to return visualization string instead of None [mahout]
Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming merged PR #757:
URL: https://github.com/apache/mahout/pull/757
--
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