openfermion.transforms.freeze_orbitals
Fix some orbitals to be occupied and others unoccupied.
openfermion.transforms.freeze_orbitals(
fermion_operator, occupied, unoccupied=None, prune=True
)
Removes all operators acting on the specified orbitals, and optionally
renumbers the remaining orbitals to eliminate unused indices. The sign of
each term is modified according to the ladder operator anti-commutation
relations in order to preserve the expectation value of the operator.
Args |
occupied
|
A list containing the indices of the orbitals that are to be
assumed to be occupied.
|
unoccupied
|
A list containing the indices of the orbitals that are to
be assumed to be unoccupied.
|
prune
|
A flag that determines whether the orbitals will be renumbered to
eliminate unused indices.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]