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

RDMs transformation #341

Merged
merged 10 commits into from
Apr 24, 2024
Merged

RDMs transformation #341

merged 10 commits into from
Apr 24, 2024

Conversation

pwkj
Copy link
Contributor

@pwkj pwkj commented Apr 16, 2024

No description provided.

kottmanj and others added 7 commits February 29, 2024 11:08
* fixing syntax issue in post_init of dataclass (tequilahub#327)

* fixing syntax issue in post_init of dataclass
* phoenics dropped due to maintenance resources
* more convenient randomization initialization for OO, avoiding numpy warnings

* Update version.py (tequilahub#329)
* fixing syntax issue in post_init of dataclass (tequilahub#327)
* phoenics support dropped
* more convenient randomization initialization for OO, avoiding numpy warnings
* Update qasm.py (tequilahub#334)
Fixes issue tequilahub#332
* added methods to create annihilation, creation, sz, sp, sm and s2 operators in qubit representation (tequilahub#336)
* Update qasm.py (tequilahub#335)
* Update ci_chemistry_psi4.yml (psi4 --> conda-forge channel)
* orbital names are better tracked through transformations (tequilahub#338)
* keep basis info when re-initializing with mol.from_tequila
* orbital-optimization gives back molecule in the original basis
* more basis info (tequilahub#339)
---------

Co-authored-by: davibinco <[email protected]>
@@ -1638,7 +1638,8 @@ def rdm2(self):
return None

def compute_rdms(self, U: QCircuit = None, variables: Variables = None, spin_free: bool = True,
get_rdm1: bool = True, get_rdm2: bool = True, ordering="dirac", use_hcb: bool = False):
get_rdm1: bool = True, get_rdm2: bool = True, ordering="dirac", use_hcb: bool = False,
rdm_trafo: QubitHamiltonian = False):
Copy link
Collaborator

Choose a reason for hiding this comment

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

default should be None instead of False
otherwise if rdm_trafo is None further down doesn't work as intended

@kottmanj kottmanj changed the base branch from master to devel April 24, 2024 07:26
@kottmanj kottmanj self-requested a review April 24, 2024 07:27
@kottmanj kottmanj merged commit a1651f6 into tequilahub:devel Apr 24, 2024
16 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