<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PyTorch on Bughht Blog</title><link>https://bughht.github.io/tags/pytorch/</link><description>Recent content in PyTorch on Bughht Blog</description><generator>Hugo</generator><language>zh-CN</language><managingEditor>hhong6@mgh.harvard.edu (Haotian Hong)</managingEditor><webMaster>hhong6@mgh.harvard.edu (Haotian Hong)</webMaster><lastBuildDate>Sat, 20 Dec 2025 15:09:46 +0800</lastBuildDate><atom:link href="https://bughht.github.io/tags/pytorch/index.xml" rel="self" type="application/rss+xml"/><item><title>Concomitant Field Simulation</title><link>https://bughht.github.io/intern_mgh/concomitant_sim/</link><pubDate>Sat, 20 Dec 2025 15:09:46 +0800</pubDate><author>hhong6@mgh.harvard.edu (Haotian Hong)</author><guid>https://bughht.github.io/intern_mgh/concomitant_sim/</guid><description>&lt;h1 id="mri-concomitant-field-simulation-tool"&gt;MRI Concomitant Field Simulation Tool&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/bughht/concomitant_sim"target="_blank" rel="external nofollow noopener noreferrer"&gt;bughht/concomitant_sim&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;concomitant_sim&lt;/code&gt;&lt;/strong&gt; is a fast, backend-agnostic Python package for simulating the phase accumulation caused by concomitant fields (Maxwell Terms) in MRI. It enables high-performance computations on both CPU and GPU by natively supporting NumPy arrays, PyTorch tensors, and CuPy arrays. The library uses an intelligent dispatching mechanism to adapt array operations to your inputs seamlessly.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="theoretical-modeling"&gt;Theoretical Modeling&lt;/h2&gt;
&lt;p&gt;The phase accumulation $\Phi_c$ caused by concomitant fields is modeled by integrating the magnetic field variation $\Delta B_c$ over time. Following the standard framework established by Bernstein et al. (1998), for a system with primary linear gradients, the concomitant field $B_c$ is approximated by second-order spatial terms:&lt;/p&gt;</description></item></channel></rss>