[
https://issues.apache.org/jira/browse/MAHOUT-477?focusedWorklogId=986835&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-986835
]
ASF GitHub Bot logged work on MAHOUT-477:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Oct/25 07:38
Start Date: 12/Oct/25 07:38
Worklog Time Spent: 10m
Work Description: guan404ming opened a new pull request, #584:
URL: https://github.com/apache/mahout/pull/584
### Purpose of PR
This PR adds swap test functionality to all three quantum backends (Qiskit,
Cirq, and Amazon Braket) in Qumat. The swap test is a quantum algorithm for
measuring the overlap between two quantum states, which is useful for quantum
machine learning and quantum state comparison tasks.
### Linked Issues
Add links to related issues.
- Closes #477
### Changes Made
- [ ] Bug fix
- [x] New feature
- [ ] Documentation update
### Important ToDos
Please mark each with an "x"
A GitHub issue exists (if not, please create one)
[https://github.com/apache/mahout/issues]
- [x] Title of PR is "Issue #XXXX: Brief Description of Changes" where XXXX
is the GitHub issue number.
- [x] Created unit tests where appropriate
- [x] Added correct licenses on newly added files
- [ ] Assigned GitHub issue to self
- [ ] Added documentation in ScalaDocs/JavaDocs and to the website
- [x] Successfully built and ran all unit tests, verified that all tests
pass locally
If all of these items are not yet complete, but you still feel it is
appropriate to open a PR, please open it as a **Draft PR** instead.
Once all requirements are met, you can mark it as ready for review.
### Breaking Changes
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
### Testing & Verification
Describe how you tested the changes.
- [x] Unit tests added
- [x] Manually tested
### Checklist
- [x] The title follows the format "MAHOUT-XXXX Brief Description"
- [x] GitHub issue is created
- [x] Code follows ASF guidelines
Issue Time Tracking
-------------------
Worklog Id: (was: 986835)
Remaining Estimate: 0h
Time Spent: 10m
> SimilarityMatrixEntryKeyPartitioner sometimes produces illegal partition
> numbers
> --------------------------------------------------------------------------------
>
> Key: MAHOUT-477
> URL: https://issues.apache.org/jira/browse/MAHOUT-477
> Project: Mahout
> Issue Type: Bug
> Reporter: Sebastian Schelter
> Assignee: Sean R. Owen
> Priority: Minor
> Fix For: 0.4
>
> Attachments: MAHOUT-477.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> My job failed on EMR today with the exception below. I think this happens
> only when when there are negative row/column indices in a matrix given to
> RowSimilarityJob, still have to figure out the details.
> java.io.IOException: Illegal partition for
> org.apache.mahout.math.hadoop.similarity.SimilarityMatrixEntryKey@3532b21 (-3)
> at
> org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:921)
> at
> org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:549)
> at
> org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
> at org.apache.hadoop.mapreduce.Mapper.map(Mapper.java:124)
> at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:629)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:310)
> at org.apache.hadoop.mapred.Child.main(Child.java:170)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)