pyUni10.Bond¶
-
class
pyUni10.
Bond
¶ Proxy of C++ uni10::Bond class
Class for bonds
-
pyUni10.
Bond
(bdtype, dim)
-
pyUni10.
Bond
(bdtype, qnums)
-
pyUni10.
Bond
(bd) Creates a Bond object
Parameters: - bdtype (BondType) – BD_IN / BD_OUT
- dim (int) – dimension of the bond (no symmetry)
- qnums (array of Qnums) – list of quantum numbers
- bd (Bond) – a Bond object
Returns: a Bond object
Return type: Methods
-
Bond.
Qlist
()¶ Returns a tuple of quantum numbers associate with Bond
Returns: a tuple of quantum numbers Return type: tuple of Qnum
-
Bond.
assign
(bdtype, dim)¶
-
Bond.
assign
(bdtype, qnums) Set the dimensions / quantum numbers of a bond.
Parameters: - bdtype (BondType) – BD_IN / BD_OUT
- dim (int) – dimension of a bond (no symmetry)
- qnum (arrays of Qnum) – arrays of quantum numbers
-
Bond.
change
(bdtype)¶ Changes the type of Bond, and changes the Qnums of Bond . If the bond is changed from in-coming(BD_IN) to out-going(BD_OUT) type or vice versa, the resulting Qnums is -Qnums.
Parameters: bdtype (BondType) – BD_IN / BD_OUT Returns: _Bond_ with type bdtype Return type: Bond
-
Bond.
combine
(bd)¶ Merge bd into Bond.
Parameters: bd (Bond) – bond to be merged Returns: merged bond Return type: Bond
-
Bond.
degeneracy
()¶ Returns a dictionary of quantum numbers as the key and the correspoding number of degeneracy as the value ({Qnum: int}).
Returns: dictionary of quantum number:degeracy pairs Return type: dict ({Qnum: int})
-
Bond.
dim
()¶ Returns the total dimension of Bond
Returns: dimension of Bond Return type: int
-
Bond.
type
()¶ Returns the type of Bond
Returns: BD_IN / BD_OUT Return type: BondType