QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.quantum_info.Unitary Class Reference

Public Member Functions

None __init__ (self, qcircuit, StateSystemType system_type=...)
 init(self: quantum_info.Unitary, qcircuit: QPanda::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
 

Constructor & Destructor Documentation

◆ __init__()

None pyqpanda3.quantum_info.Unitary.__init__ ( self,
qcircuit,
StateSystemType system_type = ... )

init(self: quantum_info.Unitary, qcircuit: QPanda::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.

Parameters
qcircuitThe quantum circuit that defines the unitary operation.
system_typeThe type of the system that the unitary operation acts on, with a default value of SystemType::Q2Q1Q0.

Member Function Documentation

◆ __eq__()

bool pyqpanda3.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.

Parameters
Unitaryanother Unitary object
Returns
Bool if they are same, return true.

◆ ndarray()

numpy.ndarray[numpy.complex128] pyqpanda3.quantum_info.Unitary.ndarray ( self)

ndarray(self: quantum_info.Unitary) -> numpy.ndarray[numpy.complex128]

Generate a numpy.ndarray object using data in self

Returns
a numpy.ndarray object

The documentation for this class was generated from the following file: