quchip.chip.transformations.coordinate_change¶
Keep a captured change of coordinates on a rebuilt chip.
Coupling and effective-term reductions rotate the whole product space by a
unitary from one isolated interaction. Devices and kept edges keep their
authored terms. One EffectiveTerms contribution
holds the remaining part of the rotated Hamiltonian, which includes earlier
effective terms and carries their channels and notes through the rotation.
Functions
|
Embed a dense |
|
Return |
|
Return the eigenvectors of |
|
Return the local energies of |
|
Rebuild |
- quchip.chip.transformations.coordinate_change.product_energies(bases, labels)[source]¶
Return the local energies of
labelssummed over their product basis, in label order.
- quchip.chip.transformations.coordinate_change.isolated_hamiltonian(chip, devices, approximation, *, couplings=(), effective_terms=())[source]¶
Return
deviceswith the selected interaction alone: matrix, local product energies and dims.The diagonal holds the local product energies. The selected
couplingsoreffective_termssupply all other elements. Useschip’s basis and backend.
- quchip.chip.transformations.coordinate_change.labeled_eigenvectors(matrix, dims)[source]¶
Return the eigenvectors of
matrixordered by the bare product label of largest overlap.
- quchip.chip.transformations.coordinate_change.embed_on_labels(backend, labels, dims, operator, support)[source]¶
Embed a dense
operatoronsupportin the product space ordered bylabels.
- quchip.chip.transformations.coordinate_change.retain_coordinate_change(chip, *, source, labels, dims, rotation, retained_h, approximation, devices, couplings, label, notes, removed_owners=())[source]¶
Rebuild
chipand keep in one contribution everything that its authored terms miss.rotationandretained_huse the source’s local energy product basis inlabelsorder.retained_his the source Hamiltonian in the rotated coordinates. The rebuilt chip keepsdevicesandcouplingswith their authored parameters.retained_hminus their Hamiltonian, assembled atapproximation, becomes oneEffectiveTermsnamedlabel. This contribution absorbs the source’s effective terms, so their channels follow the rotation and their notes come beforenotes. The channels ofremoved_ownersalso follow the rotation. Returns the rebuilt chip and its capturedReductionMap.