bloqade.pyqrack.reg.PyQrackQubit
← Module overview
class
method
sourcemethod
classPyQrackQubit¶source
bloqade.pyqrack.reg.PyQrackQubit
Bases: Qubit
The runtime representation of a qubit reference.
Signature
class PyQrackQubit(addr: int, sim_reg: QrackSimulator, state: QubitState)Parameters
| Name | Type | Description |
|---|---|---|
addr | int | |
sim_reg | QrackSimulator | |
state | QubitState |
Attributes
| Name | Type | Description |
|---|---|---|
addr | int | The address of this qubit in the quantum register. |
sim_reg | QrackSimulator | The register of the simulator. |
state | QubitState | The state of the qubit (active/lost) |
methodis_active¶source
bloqade.pyqrack.reg.PyQrackQubit.is_active
def is_active() -> boolCheck if the qubit is active.
Returns True if the qubit is active, False otherwise.
Returns
bool
methoddrop¶source
bloqade.pyqrack.reg.PyQrackQubit.drop