QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.core.Qubit Class Reference

Public Member Functions

None __init__ (self, int qubit)
 init(self: core.Qubit, qubit: int) -> None
 
int get_qubit_addr (self)
 get_qubit_addr(self: core.Qubit) -> int
 
int __int__ (self)
 int(self: core.Qubit) -> int
 

Constructor & Destructor Documentation

◆ __init__()

None pyqpanda3.core.Qubit.__init__ ( self,
int qubit )

init(self: core.Qubit, qubit: int) -> None

Initialize a qubit with an address.

Member Function Documentation

◆ __int__()

int pyqpanda3.core.Qubit.__int__ ( self)

int(self: core.Qubit) -> int

Convert the qubit to its address as an integer.

◆ get_qubit_addr()

int pyqpanda3.core.Qubit.get_qubit_addr ( self)

get_qubit_addr(self: core.Qubit) -> int

Get the address of the qubit.


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