[
https://issues.apache.org/jira/browse/MAHOUT-682?focusedWorklogId=996065&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-996065
]
ASF GitHub Bot logged work on MAHOUT-682:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Dec/25 13:11
Start Date: 13/Dec/25 13:11
Worklog Time Spent: 10m
Work Description: JiangJiaWei1103 commented on code in PR #724:
URL: https://github.com/apache/mahout/pull/724#discussion_r2616298460
##########
docs/api.md:
##########
@@ -64,10 +72,20 @@
- `qubit_index` (int): Index of the qubit.
- **Usage**: Alters the phase of a qubit without changing its amplitude.
+## `apply_t_gate(self, qubit_index)`
+- **Purpose**: Applies the T (π/8) phase gate to a specified qubit.
+- **Parameters**:
+ - `qubit_index` (int): Index of the qubit.
+- **Usage**: Adds a π/4 phase to |1⟩. Together with the Hadamard (H) and CNOT
gates, it enables universal single-qubit control.
+
## `execute_circuit(self)`
- **Purpose**: Executes the quantum circuit and retrieves the results.
- **Usage**: Used to run the entire set of quantum operations and measure the
outcomes.
+## `get_final_state_vector(self)`
+- **Purpose**: Returns the final state vector of the circuit from the
configured backend.
+- **Usage**: Retrieve the full quantum state for simulation and analysis
workflows.
Review Comment:
```suggestion
- **Usage**: Retrieves the full quantum state for simulation and analysis
workflows.
```
nit: Just align with other statements if you don't mind. Thanks!
Issue Time Tracking
-------------------
Worklog Id: (was: 996065)
Time Spent: 40m (was: 0.5h)
> The LDA output does not include the topic-probability distribution per
> document (p(z|d)). It outputs only the topics and corresponding words.
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MAHOUT-682
> URL: https://issues.apache.org/jira/browse/MAHOUT-682
> Project: Mahout
> Issue Type: Improvement
> Components: classic
> Affects Versions: 0.4
> Reporter: Himanshu Gahlot
> Assignee: Jake Mannix
> Priority: Major
> Fix For: 0.5
>
> Attachments: ASF.LICENSE.NOT.GRANTED--MAHOUT-458.patch,
> ASF.LICENSE.NOT.GRANTED--MAHOUT-458.patch
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The current implementation of LDA outputs only topics and their words. Many
> applications need the p(z|d) values of a document to use this vector as a
> reduced representation of the document (dimensionality reduction of
> document). We need to introduce a new key which would keep track of the gamma
> values for each document (as obtained from the document.infer() method) and
> writes these to the output stream and finally, PrintLDATopics should output
> these values per document id. Also, outputting the probabilities of words in
> a topic would also provide a more meaningful output.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)