8000 Update Matrix/Vector receiver by itsubaki · Pull Request #33 · itsubaki/q · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update Matrix/Vector receiver #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 16, 2025
Merged

Update Matrix/Vector receiver #33

merged 3 commits into from
May 16, 2025

Conversation

itsubaki
Copy link
Owner

No description provided.

@itsubaki itsubaki self-assigned this May 16, 2025
Copy link
codecov bot commented May 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (46863ea) to head (588b24f).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #33   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines         1331      1342   +11     
=========================================
+ Hits          1331      1342   +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@itsubaki itsubaki requested a review from Copilot May 16, 2025 15:53
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors receiver types and function signatures across the quantum, gate, density, and math packages to use pointer semantics for matrices and vectors. Key changes include updating the "Qubit" struct and associated methods, revising gate and density matrix operations, and aligning test files with the new pointer-based APIs.

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
quantum/qubit/qubit.go Refactored Qubit receiver to use a pointer to vector.
quantum/gate/gate_test.go Updated test cases to work with pointer-based matrix types.
quantum/gate/gate.go Modified gate functions and API to return pointer matrices.
quantum/density/matrix_test.go Adjusted density matrix tests for pointer receivers.
quantum/density/matrix.go Changed internal matrix field and related methods.
quantum/density/flip.go Updated channel functions to use pointer matrix types.
q_test.go Modified tests to align with updated matrix APIs.
q.go Updated Q operations to use pointer matrices.
math/vector/vector_test.go Revised vector tests to use pointer-based vectors.
math/vector/vector.go Refactored vector type to a struct with pointer methods.
math/matrix/matrix_test.go Updated matrix tests with pointer-based matrix types.
math/matrix/matrix.go Changed matrix creation and operations to use pointers.
Comments suppressed due to low confidence (1)

quantum/gate/gate.go:291

  • The loop 'for i := range n' is attempting to iterate over an integer value. Replace it with a conventional loop (e.g., 'for i := 0; i < n; i++') to correctly iterate over a range of indices.
for i := range n {

@itsubaki itsubaki merged commit 04251f9 into main May 16, 2025
3 checks passed
@itsubaki itsubaki deleted the update-receiver branch May 16, 2025 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0