bloqade.analog.emulate.ir.state_vector.AnalogGate
← Module overview
class
method
sourcemethod
source
classAnalogGate¶source
bloqade.analog.emulate.ir.state_vector.AnalogGate
class AnalogGate(hamiltonian: RydbergHamiltonian)Parameters
| Name | Type | Description |
|---|---|---|
hamiltonian | RydbergHamiltonian |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
SUPPORTED_SOLVERS | — | ['lsoda', 'dop853', 'dopri5'] | |
hamiltonian | RydbergHamiltonian | required |
methodapply¶source
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
| Name | Type | Default | Description |
|---|---|---|---|
state | StateVector | required | |
solver_name | str | 'dop853' | |
atol | float | 1e-07 | |
rtol | float | 1e-14 | |
nsteps | int | 2147483647 | |
times | Union[Sequence[float], RealArray] | () | |
interaction_picture | bool | False |
methodrun¶source
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
| Name | Type | Default | Description |
|---|---|---|---|
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 |
Returns
NDArray[np.uint8]