From 88c5ef13e18b92e43773d70b608584ea11a17dfd Mon Sep 17 00:00:00 2001 From: Aaron Trowbridge Date: Wed, 5 Jun 2024 13:25:29 -0400 Subject: [PATCH] formatting --- src/quantum_system_templates/rydberg.jl | 54 +++++++++++++++---------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/src/quantum_system_templates/rydberg.jl b/src/quantum_system_templates/rydberg.jl index b45c6d3c..c6c40120 100644 --- a/src/quantum_system_templates/rydberg.jl +++ b/src/quantum_system_templates/rydberg.jl @@ -1,25 +1,4 @@ -@doc raw""" - RydbergChainSystem(; - C::Float64=862690*2π, - distance::Float64=10.0, # μm - cutoff_order::Int=2, # 1 is nearest neighbor, 2 is next-nearest neighbor, etc. - local_detune::Bool=false, # If true, include one local detuning pattern. - ) -> QuantumSystem -Returns a `QuantumSystem` object for the Rydberg atom chain in the spin basis - |g⟩ = |0⟩ = [1, 0], |r⟩ = |1⟩ = [0, 1]. - -```math -H = \sum_i 0.5*\Omega_i(t)\cos(\phi_i(t)) \sigma_i^x - 0.5*\Omega_i(t)\sin(\phi_i(t)) \sigma_i^y - \sum_i \Delta_i(t)n_i + \sum_{i QuantumSystem + +Returns a `QuantumSystem` object for the Rydberg atom chain in the spin basis + |g⟩ = |0⟩ = [1, 0], |r⟩ = |1⟩ = [0, 1]. + +```math +H = \sum_i 0.5*\Omega_i(t)\cos(\phi_i(t)) \sigma_i^x - 0.5*\Omega_i(t)\sin(\phi_i(t)) \sigma_i^y - \sum_i \Delta_i(t)n_i + \sum_{i N, :C => C, @@ -97,6 +106,7 @@ function RydbergChainSystem(; :local_detune => local_detune, :all2all => all2all, ) + return QuantumSystem( H_drift, H_drives;