Skip to content

Navigation Menu

Sign in
Sign up
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Remove NumSharp dependency - #644

Open
Mathias Soeken (msoeken) wants to merge 1 commit into
main from
msoeken/numsharp
Open

Remove NumSharp dependency #644
Mathias Soeken (msoeken) wants to merge 1 commit into
main from
msoeken/numsharp

Conversation

@msoeken

Copy link
Copy Markdown
Member

This refactors some code that deals with unitary matrix to drop the NumSharp dependency.

Assert.Equal(0.0, (double)unitary.Data[1, 0, 1], precision: 6);
Assert.Equal(1.0, (double)unitary.Data[1, 1, 1], precision: 6);

Assert.Equal("Real:\n[[1.0000000000000002, 0], \n[0, 0]]\nImag:\n[[0, 0], \n[0, 1.0000000000000002]]", unitary.ToString());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why are the array dimensions different between implementations?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The previous implementation uses a 3 dimensional matrix of floating-point values to represent a two-dimensional matrix of complex numbers (the extra dimension is used to represent the real and imaginary parts of the values).

The new implementation uses a two dimensional matrix of complex values (internally it uses a one-dimensional list to store everything).

Copy link
Copy Markdown
Contributor

/azp where

Copy link
Copy Markdown
Azure DevOps orgs getting events for this repository:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@billti Bill Ticehurst (billti) billti approved these changes
Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /