![]() |
QPanda3
Supported by OriginQ
|
Public Member Functions | |
| None | __init__ (self, qcircuit, StateSystemType system_type=...) |
| init(self: quantum_info.Unitary, qcircuit: QPanda3::QCircuit, system_type: quantum_info.StateSystemType = <StateSystemType.Q2Q1Q0: 1>) -> None | |
| numpy.ndarray[numpy.complex128] | ndarray (self) |
| ndarray(self: quantum_info.Unitary) -> numpy.ndarray[numpy.complex128] | |
| bool | __eq__ (self, Unitary other) |
| eq(self: quantum_info.Unitary, other: quantum_info.Unitary) -> bool | |
| None pyqpanda3.quantum_info.quantum_info.Unitary.__init__ | ( | self, | |
| qcircuit, | |||
| StateSystemType | system_type = ... ) |
init(self: quantum_info.Unitary, qcircuit: QPanda3::QCircuit, system_type: quantum_info.StateSystemType = <StateSystemType.Q2Q1Q0: 1>) -> None
Constructs a Unitary operation from a quantum circuit and a system type.
This constructor initializes a Unitary object based on the given quantum circuit and the specified system type.
| qcircuit | The quantum circuit that defines the unitary operation. |
| system_type | The type of the system that the unitary operation acts on, with a default value of SystemType::Q2Q1Q0. |
| bool pyqpanda3.quantum_info.quantum_info.Unitary.__eq__ | ( | self, | |
| Unitary | other ) |
eq(self: quantum_info.Unitary, other: quantum_info.Unitary) -> bool
Equality check. Determine if the internal data of two Unitary objects are equal.
| numpy.ndarray[numpy.complex128] pyqpanda3.quantum_info.quantum_info.Unitary.ndarray | ( | self | ) |
ndarray(self: quantum_info.Unitary) -> numpy.ndarray[numpy.complex128]
Generate a numpy.ndarray object using data in self