![]() |
QPanda3
Supported by OriginQ
|
Public Member Functions | |
| None | __init__ (self) |
| init(*args, **kwargs) Overloaded function. | |
| None | __init__ (self, numpy.ndarray[numpy.complex128[m, n]] data) |
| init(*args, **kwargs) Overloaded function. | |
| complex | L2 (self) |
| L2(self: quantum_info.Matrix) -> complex. | |
| Matrix | T (self) |
| T(self: quantum_info.Matrix) -> quantum_info.Matrix. | |
| Matrix | adjoint (self) |
| adjoint(self: quantum_info.Matrix) -> quantum_info.Matrix | |
| complex | at (self, int rowIdx, int colIdx) |
| at(self: quantum_info.Matrix, rowIdx: int, colIdx: int) -> complex | |
| Any | at (self, rowIdx, colIdx) |
| at(self: quantum_info.Matrix, rowIdx: int, colIdx: int) -> complex | |
| int | col_total (self) |
| col_total(self: quantum_info.Matrix) -> int | |
| Matrix | hermitian_conjugate (self) |
| hermitian_conjugate(self: quantum_info.Matrix) -> quantum_info.Matrix | |
| bool | is_hermitian (self) |
| is_hermitian(self: quantum_info.Matrix) -> bool | |
| numpy.ndarray[numpy.complex128] | ndarray (self) |
| ndarray(self: quantum_info.Matrix) -> numpy.ndarray[numpy.complex128] | |
| int | row_total (self) |
| row_total(self: quantum_info.Matrix) -> int | |
| Matrix | transpose (self) |
| transpose(self: quantum_info.Matrix) -> quantum_info.Matrix | |
| bool | __eq__ (self, Matrix other) |
| eq(self: quantum_info.Matrix, other: quantum_info.Matrix) -> bool | |
| None pyqpanda3.quantum_info.quantum_info.Matrix.__init__ | ( | self | ) |
init(*args, **kwargs) Overloaded function.
Construct Matrix using data.
Construct Matrix using data.
| None pyqpanda3.quantum_info.quantum_info.Matrix.__init__ | ( | self, | |
| numpy.ndarray[numpy.complex128[m, n]] | data ) |
init(*args, **kwargs) Overloaded function.
Construct Matrix using data.
Construct Matrix using data.
| bool pyqpanda3.quantum_info.quantum_info.Matrix.__eq__ | ( | self, | |
| Matrix | other ) |
eq(self: quantum_info.Matrix, other: quantum_info.Matrix) -> bool
Equality check. Determine if the internal data of two Matrix objects are equal.
| other | another Matrix object |
| Matrix pyqpanda3.quantum_info.quantum_info.Matrix.adjoint | ( | self | ) |
adjoint(self: quantum_info.Matrix) -> quantum_info.Matrix
Return the corresponding adjoint matrix (conjugate transpose).
| complex pyqpanda3.quantum_info.quantum_info.Matrix.at | ( | self, | |
| int | rowIdx, | ||
| int | colIdx ) |
at(self: quantum_info.Matrix, rowIdx: int, colIdx: int) -> complex
Get element at (rowIdx,colIdx). @rowIdx size_t row idx @colIdx size_t col idx
| Any pyqpanda3.quantum_info.quantum_info.Matrix.at | ( | self, | |
| rowIdx, | |||
| colIdx ) |
at(self: quantum_info.Matrix, rowIdx: int, colIdx: int) -> complex
Get element at (rowIdx,colIdx). @rowIdx size_t row idx @colIdx size_t col idx
| int pyqpanda3.quantum_info.quantum_info.Matrix.col_total | ( | self | ) |
col_total(self: quantum_info.Matrix) -> int
Return the total cols' total of the matrix.
| Matrix pyqpanda3.quantum_info.quantum_info.Matrix.hermitian_conjugate | ( | self | ) |
hermitian_conjugate(self: quantum_info.Matrix) -> quantum_info.Matrix
Return the corresponding adjoint matrix (conjugate transpose).
| bool pyqpanda3.quantum_info.quantum_info.Matrix.is_hermitian | ( | self | ) |
is_hermitian(self: quantum_info.Matrix) -> bool
Determine if the matrix is Hermitian.
| complex pyqpanda3.quantum_info.quantum_info.Matrix.L2 | ( | self | ) |
L2(self: quantum_info.Matrix) -> complex.
Return the L2 norm value of the matrix.
| numpy.ndarray[numpy.complex128] pyqpanda3.quantum_info.quantum_info.Matrix.ndarray | ( | self | ) |
ndarray(self: quantum_info.Matrix) -> numpy.ndarray[numpy.complex128]
Return internal data as a numpy.ndarray.
| int pyqpanda3.quantum_info.quantum_info.Matrix.row_total | ( | self | ) |
row_total(self: quantum_info.Matrix) -> int
Return the total rows' total of the matrix.
| Matrix pyqpanda3.quantum_info.quantum_info.Matrix.T | ( | self | ) |
T(self: quantum_info.Matrix) -> quantum_info.Matrix.
Return the corresponding transpose matrix.
| Matrix pyqpanda3.quantum_info.quantum_info.Matrix.transpose | ( | self | ) |
transpose(self: quantum_info.Matrix) -> quantum_info.Matrix
Return the corresponding transpose matrix.