You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Julia constructor for a lattice object. The lattice object is used to define the geometry of the lattice. `Nx` and `Ny` are the number of sites in the x and y directions, respectively. `N` is the total number of sites. `lin_idx` is a `LinearIndices` object and `car_idx` is a `CartesianIndices` object, and they are used to efficiently select sites on the lattice.
A Julia constructor for a single-site operator. `s` is the operator acting on the site. `i` is the site index, and `N` is the total number of sites. The function returns a `QuantumObject` given by ``\\mathbb{1}^{\\otimes (i - 1)} \\otimes \hat{O} \\otimes \\mathbb{1}^{\\otimes (N - i)}``.
21
+
"""
22
+
functionSingleSiteOperator(O::QuantumObject{DT,OperatorQuantumObject}, i::Integer, N::Integer) where DT
23
+
T = O.dims[1]
24
+
returnQuantumObject(kron(eye(T^(i -1)), O, eye(T^(N - i))); dims =ntuple(j ->2, Val(N)))
22
25
end
23
-
mb(s::QuantumObject{<:AbstractArray{T1},OperatorQuantumObject}, i::Integer, latt::Lattice) where{T1}=mb(s, i, latt.N)
A Julia constructor for a dissipative Ising model. The function returns the Hamiltonian
54
+
55
+
```math
56
+
\\hat{H} = \\frac{J_x}{2} \\sum_{\\langle i, j \\rangle} \\hat{\\sigma}_i^x \\hat{\\sigma}_j^x + \\frac{J_y}{2} \\sum_{\\langle i, j \\rangle} \\hat{\\sigma}_i^y \\hat{\\sigma}_j^y + \\frac{J_z}{2} \\sum_{\\langle i, j \\rangle} \\hat{\\sigma}_i^z \\hat{\\sigma}_j^z + h_x \\sum_i \\hat{\\sigma}_i^x
57
+
```
58
+
59
+
and the collapse operators
60
+
61
+
```math
62
+
\\hat{c}_i = \\sqrt{\\gamma} \\hat{\\sigma}_i^-
63
+
```
64
+
65
+
# Arguments
66
+
- `Jx::Real`: The coupling constant in the x-direction.
67
+
- `Jy::Real`: The coupling constant in the y-direction.
68
+
- `Jz::Real`: The coupling constant in the z-direction.
69
+
- `hx::Real`: The magnetic field in the x-direction.
70
+
- `hy::Real`: The magnetic field in the y-direction.
71
+
- `hz::Real`: The magnetic field in the z-direction.
72
+
- `γ::Real`: The local dissipation rate.
73
+
- `latt::Lattice`: A [`Lattice`](@ref) object that defines the geometry of the lattice.
74
+
- `boundary_condition::Union{Symbol, Val}`: The boundary conditions of the lattice. The possible inputs are `periodic_bc` and `open_bc`, for periodic or open boundary conditions, respectively. The default value is `Val(:periodic_bc)`.
75
+
- `order::Integer`: The order of the nearest-neighbour sites. The default value is 1.
0 commit comments