Skip to content

bloqade.analog.emulate.ir.state_vector.AnalogGate

← Module overview

classAnalogGatesource

bloqade.analog.emulate.ir.state_vector.AnalogGate

class AnalogGate(hamiltonian: RydbergHamiltonian)

Parameters

NameTypeDescription
hamiltonianRydbergHamiltonian

Attributes

NameTypeDefaultDescription
SUPPORTED_SOLVERS—['lsoda', 'dop853', 'dopri5']
hamiltonianRydbergHamiltonianrequired

methodapplysource

bloqade.analog.emulate.ir.state_vector.AnalogGate.apply

Signature
def apply(state: StateVector, solver_name: str = 'dop853', atol: float = 1e-07, rtol: float = 1e-14, nsteps: int = 2147483647, times: Union[Sequence[float], RealArray] = (), interaction_picture: bool = False)

Parameters

NameTypeDefaultDescription
stateStateVectorrequired
solver_namestr'dop853'
atolfloat1e-07
rtolfloat1e-14
nstepsint2147483647
timesUnion[Sequence[float], RealArray]()
interaction_pictureboolFalse
source

methodrunsource

bloqade.analog.emulate.ir.state_vector.AnalogGate.run

Signature
def run(shots: int = 1, solver_name: str = 'dop853', atol: float = 1e-14, rtol: float = 1e-07, nsteps: int = 2147483647, interaction_picture: bool = False, project_hyperfine: bool = True) -> NDArray[np.uint8]

Run the emulation with all atoms in the ground state, sampling the final state vector.

Parameters

NameTypeDefaultDescription
shotsint1
solver_namestr'dop853'
atolfloat1e-14
rtolfloat1e-07
nstepsint2147483647
interaction_pictureboolFalse
project_hyperfineboolTrue

Returns

NDArray[np.uint8]

source