Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Mathematics
MATLAB, Maple, Mathematica, LaTeX
Piecewise Time-Dependent Hamiltonian in Mathematica Strategy
Reply to thread
Message
[QUOTE="alexmurillo242, post: 6636449, member: 701736"] [B]TL;DR Summary:[/B] Since matrices are handled as lists of lists in Mathematica and the Piecewise() function's first argument expects a list of pairs what type of strategy would you all use for defining a Hamiltonian that abruptly changes in time (Image included) Hi all, I'm doing some light simulations for an experiment I'm going to be running soon. I've ran through the math symbolically on paper but I'm not exactly eager for handling this large of matrices by hand so I'm trying to work through it and see if I can generate a simulated signal to compare my results against. There is a Hamiltonian (Hzf15) which is present throughout the entire time and is an inherent structural part of the molecule and I'm trying to implement a hard RF pulse in the x-direction represented by HxDC that is applied for a period of time (PulseTime) that is initiated at t = 0. Due to the way that the Piecewise[] function works by having a list of pairs and matrices are stored as a list of lists I get the error seen at the bottom. How would you all recommend going about defining such a function? I have started trying to rewrite this all in Matlab but I have significantly less experience with it so we'll see how that goes. 😂 I'm still rather new to the whole simulation side of this so any general recommendations would be appreciated as well especially if its just a syntactic error. P.S. for more detail all of the operators here are for operating on a system of 5 spin-1/2 particles with tetrahedral symmetry around a heteroatom center. [/QUOTE]
Insert quotes…
Post reply
Forums
Mathematics
MATLAB, Maple, Mathematica, LaTeX
Piecewise Time-Dependent Hamiltonian in Mathematica Strategy
Back
Top