PySparQ.pysparq

PySparQ type stubs - re-exports all public API from the _core module.

Submodules

Attributes

Classes

StatePrinter

Reusable state formatter with configurable default mode.

Functions

StatePrint(→ str)

Return a formatted string representation of a SparseState.

print(→ None)

Print a SparseState to stdout in Detail mode.

test_import(→ None)

Test that the PySparQ import works correctly.

to_string(→ str)

Return a formatted string representation of a SparseState (alias for StatePrint).

Package Contents

class PySparQ.pysparq.StatePrinter(mode: int | pysparq._core.StatePrintDisplay = 1, precision: int = 0)[源代码]

Reusable state formatter with configurable default mode.

mode: int[源代码]
precision: int[源代码]
PySparQ.pysparq.StatePrint(state: pysparq._core.SparseState, mode: int | pysparq._core.StatePrintDisplay = 1, precision: int = 0) → str[源代码]

Return a formatted string representation of a SparseState.

PySparQ.pysparq.print(state: pysparq._core.SparseState, mode: int | pysparq._core.StatePrintDisplay = 1, precision: int = 0) → None[源代码]

Print a SparseState to stdout in Detail mode.

PySparQ.pysparq.test_import() → None[源代码]

Test that the PySparQ import works correctly.

PySparQ.pysparq.to_string(state: pysparq._core.SparseState, mode: int | pysparq._core.StatePrintDisplay = 1, precision: int = 0) → str[源代码]

Return a formatted string representation of a SparseState (alias for StatePrint).

PySparQ.pysparq.AddAssign_AnyInt_AnyInt_InPlace: type[pysparq._core.Add_AnyInt_AnyInt_InPlace][源代码]
PySparQ.pysparq.Div_Sqrt_Arccos_Int_Int: type[pysparq._core.Div_Sqrt_Arccos_UInt_UInt][源代码]
PySparQ.pysparq.GlobalPhase_Int: type[pysparq._core.GlobalPhase][源代码]
PySparQ.pysparq.Hadamard_PartialQubit: type[pysparq._core.Hadamard_Partial][源代码]
PySparQ.pysparq.QuantumBinarySearchFast: type[QuantumBinarySearch_Fast][源代码]
PySparQ.pysparq.RXgate_Bool: type[pysparq._core.RX_Bool][源代码]
PySparQ.pysparq.RYgate_Bool: type[pysparq._core.RY_Bool][源代码]
PySparQ.pysparq.RZgate_Bool: type[pysparq._core.RZ_Bool][源代码]
PySparQ.pysparq.SXgate_Bool: type[pysparq._core.SX_Bool][源代码]
PySparQ.pysparq.Sgate_Bool: type[pysparq._core.S_Bool][源代码]
PySparQ.pysparq.Sqrt_Div_Arccos_Int_Int: type[pysparq._core.Sqrt_Div_Arccos_Int_UInt][源代码]
PySparQ.pysparq.Tgate_Bool: type[pysparq._core.T_Bool][源代码]
PySparQ.pysparq.U2gate_Bool: type[pysparq._core.U2_Bool][源代码]
PySparQ.pysparq.U3gate_Bool: type[pysparq._core.U3_Bool][源代码]
PySparQ.pysparq.Xgate_Bool: type[pysparq._core.X_Bool][源代码]
PySparQ.pysparq.Ygate_Bool: type[pysparq._core.Y_Bool][源代码]
PySparQ.pysparq.Zgate_Bool: type[pysparq._core.Z_Bool][源代码]
PySparQ.pysparq.inverseQFT: type[pysparq._core.InverseQFT][源代码]