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 testcase for symbolic conversion #315

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

cqc-melf
Copy link
Collaborator

@cqc-melf cqc-melf commented Apr 5, 2024

Description

Adding tests for #314

Related issues

Please mention any github issues addressed by this PR.

Checklist

  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

@cqc-melf cqc-melf marked this pull request as ready for review April 5, 2024 14:53
@cqc-melf cqc-melf requested a review from CalMacCQ April 5, 2024 14:53


# https://github.com/CQCL/pytket-qiskit/issues/256
def test_symbolic_param_conv() -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

I note that this test does not have an assert statement or anything of that kind.

Is the idea just to ensure that this code executes successfully and doesn't give the

TypeError: EvalfMixin.evalf() got an unexpected keyword argument 'real'

As before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes that was my idea, I was thinking about checking stuff in the final circuit, but I would expect the way qiskit is setting up the circuit or the compilation works might change without generating any issues here, so I decided not to do any additional checks.

Copy link
Contributor

@CalMacCQ CalMacCQ left a comment

Choose a reason for hiding this comment

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

One clarification needed. Also can you link to the orignal PR in the desciption please?

@cqc-melf
Copy link
Collaborator Author

cqc-melf commented Apr 5, 2024

One clarification needed. Also can you link to the orignal PR in the desciption please?

Done

@cqc-melf cqc-melf requested a review from CalMacCQ April 5, 2024 16:26
@cqc-melf cqc-melf merged commit b98d535 into develop Apr 8, 2024
7 checks passed
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.

2 participants