shiavm006 opened a new issue, #640:
URL: https://github.com/apache/mahout/issues/640
### Description
The API documentation in `docs/api.md` documents a method named
`draw_circuit(self)` that does not exist in the codebase. The actual method
name is `draw(self)`. This causes users following the documentation to
encounter `AttributeError` when trying to visualize quantum circuits.
### Steps to Reproduce
1. Open the API documentation at `docs/api.md` lines 71-75
2. Follow the documented method to visualize a circuit:
from qumat import QuMat
backend_config = {
'backend_name': 'qiskit',
'backend_options': {'simulator_type': 'aer_simulator', 'shots': 1024}
}
qumat = QuMat(backend_config)
qumat.create_empty_circuit(1)
qumat.apply_hadamard_gate(0)
qumat.draw_circuit() # Following the documentation
3. Observe the error: `AttributeError: 'QuMat' object has no attribute
'draw_circuit'`
### Expected Behavior
The documentation should reference the correct method name `draw(self)` that
exists in the codebase at `qumat/qumat.py` line 337.
### Actual Behavior
**Current documentation** (`docs/api.md` lines 71-75):
**Proposed fix**: Update `docs/api.md` to document `draw(self)` instead of
`draw_circuit(self)`.
--
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]