Skip to content

bloqade.analog.emulate.ir.state_vector.RabiOperator

← Module overview

classRabiOperatorsource

bloqade.analog.emulate.ir.state_vector.RabiOperator

Signature
class RabiOperator(op: SparseOperator, amplitude: Callable[[float], float], phase: Optional[Callable[[float], float]] = None)

Parameters

NameTypeDefaultDescription
opSparseOperatorrequired
amplitudeCallable[[float], float]required
phaseOptional[Callable[[float], float]]None

Attributes

NameTypeDefaultDescription
opSparseOperatorrequired
amplitudeCallable[[float], float]required
phaseOptional[Callable[[float], float]]None

methoddotsource

bloqade.analog.emulate.ir.state_vector.RabiOperator.dot

def dot(register: NDArray, output: NDArray, time: float)

Parameters

NameTypeDescription
registerNDArray
outputNDArray
timefloat
source

methodtocsrsource

bloqade.analog.emulate.ir.state_vector.RabiOperator.tocsr

def tocsr(time: float) -> csr_matrix

Parameters

NameTypeDescription
timefloat

Returns

csr_matrix

source