Skip to content
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

Add rtol to Qobj.__eq__ #2425

Merged
merged 6 commits into from
May 15, 2024
Merged

Add rtol to Qobj.__eq__ #2425

merged 6 commits into from
May 15, 2024

Conversation

Ericgig
Copy link
Member

@Ericgig Ericgig commented May 14, 2024

Description
As proposed in #2420, changed Qobj.__eq__ to use both rtol and atol.
The a new low level function is needed to support rtol.

Also I found that our test did not properly shuffled CSR matrices indices in mathematics tests. There was a bug we missed in multiply_csr...

Related issues or PRs
fix #2420

@Ericgig Ericgig changed the title Data.isequal Add rtol to Qobj.__eq__ May 14, 2024
@coveralls
Copy link

coveralls commented May 14, 2024

Coverage Status

coverage: 86.267%. remained the same
when pulling 23042b3 on Ericgig:data.isequal
into 4acc9f1 on qutip:master.

Copy link
Contributor

@hodgestar hodgestar left a comment

Choose a reason for hiding this comment

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

These look like good improvements to the tests and equality checks.

@Ericgig Ericgig merged commit ad05a22 into qutip:master May 15, 2024
10 of 11 checks passed
@Ericgig Ericgig deleted the data.isequal branch May 15, 2024 18:53
Ericgig added a commit to Ericgig/qutip that referenced this pull request May 16, 2024
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.

Incorporate rtol into __eq__
3 participants