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

Implement Ability to Extract Q-factors from Eigenmode Simulations #794

Merged
merged 11 commits into from
Jun 3, 2022

Conversation

SamarthH
Copy link
Contributor

What are the issues this pull addresses (issue numbers / links)?

Fixed issues with the earlier pull request. Now works with Q3D.

Did you add tests to cover your changes (yes/no)?

yes

Did you update the documentation accordingly (yes/no)?

yes

Did you read the CONTRIBUTING document (yes/no)?

yes

Summary

This pull request implements the ability to render and use resistive ports in Eigenmode simulations in order to find the Q-factors of resonators and to simulate other dissipative effects.

Details and comments

  • Included a variable in QAnsysRenderer when execute_design is called to store the solution type
  • After that, when create_ports is called by hfss_renderer, choose to create RLC ports if the solution type is Eigenmode
  • Updated add_mesh to add extra meshing to ports
  • Added tutorial to showcase how-to.

@SamarthH SamarthH marked this pull request as ready for review May 11, 2022 14:02
@SamarthH
Copy link
Contributor Author

@ThomasGM4 : Can you please review this? Thanks

Copy link
Collaborator

@ThomasGM4 ThomasGM4 left a comment

Choose a reason for hiding this comment

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

Capture

Oddly got this error when trying a Q3D simulation afterwards, though it cleared up when retried (not sure what might have caused that issue)

SamarthH and others added 2 commits May 19, 2022 08:30
This reverts commit 146b0e9.
Tests would be restored to the one in main.
@SamarthH
Copy link
Contributor Author

@ThomasGM4 In case all the issues have been addressed, could you please merge and close this pull request? Thanks

@ThomasGM4
Copy link
Collaborator

Hey @SamarthH , stumbled across another error while doing some tests of this PR. Pretty sure it is unrelated but wanting to make certain first.

@SamarthH
Copy link
Contributor Author

May I ask what the error is? Thanks

Copy link
Collaborator

@priti-ashvin-shah-ibm priti-ashvin-shah-ibm left a comment

Choose a reason for hiding this comment

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

I have run notebooks 4.18, 4.16, 4.02, and 4.11 and didn’t have any issues.

LGTM. @SamarthH , thank you for contributing to Metal repo.

@priti-ashvin-shah-ibm priti-ashvin-shah-ibm merged commit 8726fc6 into qiskit-community:main Jun 3, 2022
priti-ashvin-shah-ibm added a commit that referenced this pull request Jul 8, 2022
* 795 conda env  python3 10 using updated tag from pyepr (#796)

* Callable from collections is depreicated for python 3.10 so need to use collections.abc.

* Add new tag for pyepr.

* Update tags for new Metal pypi release.

* Wait until Samarth s pull request is merged.

* To make run_all_tests to pass.  @GyeongHun had the fix.

* Use later tag.

* Implement Ability to Extract Q-factors from Eigenmode Simulations (#794)

* Implement Ability to Extract Q-factors from Eigenmode Simulations

* Updated tests

* Added Tutorial

* Revert "Updated tests"

This reverts commit 146b0e9.
Tests would be restored to the one in main.

* When one plot_convergences(), then the frequiences are gathered so they gotten by get_frequencies().

* Removed solution_type variable. Replaced by pyEPR implementation

* Updated tests

Co-authored-by: Priti Ashvin Shah <74020801+priti-ashvin-shah-ibm@users.noreply.github.com>
Co-authored-by: Priti A Shah <Priti.Ashvin.Shah@ibm.com>

* Create a new tag for pip release. (#802)

Co-authored-by: Priti Shah <Priti.Ashvin.Shah@ibm.com>

* Fixed the FakeJunctionGDS error this time for Issue 733 (#801)

Co-authored-by: Priti Ashvin Shah <74020801+priti-ashvin-shah-ibm@users.noreply.github.com>

* Optimize-performance (#803)

* allow for using cached s_remove and s_keep; vectorize extract_energies()

* initialize chi matrix with np.empty instead of list

* cache c_k, c_inv_k, l_inv_k

* no need to validate input for add_interaction since it's called internally

* Add python 3.10

* Change python version from number to text

Co-authored-by: Priti Ashvin Shah <74020801+priti-ashvin-shah-ibm@users.noreply.github.com>
Co-authored-by: Samarth Hawaldar <47246334+SamarthH@users.noreply.github.com>
Co-authored-by: Priti A Shah <Priti.Ashvin.Shah@ibm.com>
Co-authored-by: Connor Bowman <58343812+bowmanconnor@users.noreply.github.com>
Co-authored-by: Soham Bopardikar <bopardikarsoham@gmail.com>
Co-authored-by: Yehan Liu <74025052+quantum-quant@users.noreply.github.com>
priti-ashvin-shah-ibm added a commit that referenced this pull request Aug 2, 2022
* Callable from collections is depreicated for python 3.10 so need to use collections.abc.

* Add new tag for pyepr.

* Update tags for new Metal pypi release.

* Wait until Samarth s pull request is merged.

* To make run_all_tests to pass.  @GyeongHun had the fix.

* Use later tag.

* Python 310 ci (#806)

* 795 conda env  python3 10 using updated tag from pyepr (#796)

* Callable from collections is depreicated for python 3.10 so need to use collections.abc.

* Add new tag for pyepr.

* Update tags for new Metal pypi release.

* Wait until Samarth s pull request is merged.

* To make run_all_tests to pass.  @GyeongHun had the fix.

* Use later tag.

* Implement Ability to Extract Q-factors from Eigenmode Simulations (#794)

* Implement Ability to Extract Q-factors from Eigenmode Simulations

* Updated tests

* Added Tutorial

* Revert "Updated tests"

This reverts commit 146b0e9.
Tests would be restored to the one in main.

* When one plot_convergences(), then the frequiences are gathered so they gotten by get_frequencies().

* Removed solution_type variable. Replaced by pyEPR implementation

* Updated tests

Co-authored-by: Priti Ashvin Shah <74020801+priti-ashvin-shah-ibm@users.noreply.github.com>
Co-authored-by: Priti A Shah <Priti.Ashvin.Shah@ibm.com>

* Create a new tag for pip release. (#802)

Co-authored-by: Priti Shah <Priti.Ashvin.Shah@ibm.com>

* Fixed the FakeJunctionGDS error this time for Issue 733 (#801)

Co-authored-by: Priti Ashvin Shah <74020801+priti-ashvin-shah-ibm@users.noreply.github.com>

* Optimize-performance (#803)

* allow for using cached s_remove and s_keep; vectorize extract_energies()

* initialize chi matrix with np.empty instead of list

* cache c_k, c_inv_k, l_inv_k

* no need to validate input for add_interaction since it's called internally

* Add python 3.10

* Change python version from number to text

Co-authored-by: Priti Ashvin Shah <74020801+priti-ashvin-shah-ibm@users.noreply.github.com>
Co-authored-by: Samarth Hawaldar <47246334+SamarthH@users.noreply.github.com>
Co-authored-by: Priti A Shah <Priti.Ashvin.Shah@ibm.com>
Co-authored-by: Connor Bowman <58343812+bowmanconnor@users.noreply.github.com>
Co-authored-by: Soham Bopardikar <bopardikarsoham@gmail.com>
Co-authored-by: Yehan Liu <74025052+quantum-quant@users.noreply.github.com>

* Removing the outdated python version.

* Test if sphinx is working now while we are doing a small pull request.

* We want to use python 3.8 or higher.

* We want to use python 3.9 or higher.

* Use only python39 and python310

* Just in case for future.

Co-authored-by: Gyeonghun Kim <34947229+GyeonghunKim@users.noreply.github.com>
Co-authored-by: Samarth Hawaldar <47246334+SamarthH@users.noreply.github.com>
Co-authored-by: Connor Bowman <58343812+bowmanconnor@users.noreply.github.com>
Co-authored-by: Soham Bopardikar <bopardikarsoham@gmail.com>
Co-authored-by: Yehan Liu <74025052+quantum-quant@users.noreply.github.com>
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.

3 participants