{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/forward-mode-differentiation-of-maxwells","title":"Forward-Mode Differentiation of Maxwell's Equations","arxiv_id":"1908.10507","date":"2019-08-28","proceeding":null,"authors":["Tyler W Hughes","Ian A D Williamson","Momchil Minkov","Shanhui Fan"],"abstract":"We present a previously unexplored forward-mode differentiation method for Maxwell's equations, with applications in the field of sensitivity analysis. This approach yields exact gradients and is similar to the popular adjoint variable method, but provides a significant improvement in both memory and speed scaling for problems involving several output parameters, as we analyze in the context of finite-difference time-domain (FDTD) simulations. Furthermore, it provides an exact alternative to numerical derivative methods, based on finite-difference approximations. To demonstrate the usefulness of the method, we perform sensitivity analysis of two problems. First we compute how the spatial near-field intensity distribution of a scatterer changes with respect to its dielectric constant. Then, we compute how the spectral power and coupling efficiency of a surface grating coupler changes with respect to its fill factor.","url_abs":"https://arxiv.org/abs/1908.10507v1","url_pdf":"https://arxiv.org/pdf/1908.10507v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"forward-mode-differentiation-of-maxwells","repo_url":"https://github.com/twhughes/ceviche","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"forward-mode-differentiation-of-maxwells","repo_url":"https://github.com/fancompute/ceviche","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1908.10507","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1908.10507"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/twhughes/ceviche","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/fancompute/ceviche","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":21},"by_repo_kind":{"official":{"samples":21,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"480a78607135a128","entry":"abs","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/viz.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/viz.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"480a78607135a128"}},{"code_sha256_prefix":"195bf3af50815188","entry":"adam_optimize","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/optimizers.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/optimizers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"195bf3af50815188"}},{"code_sha256_prefix":"48d1890792d089d5","entry":"b_TFSF","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/sources.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/sources.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"48d1890792d089d5"}},{"code_sha256_prefix":"3515683a16b35b70","entry":"compute_Q","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/sources.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/sources.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3515683a16b35b70"}},{"code_sha256_prefix":"fc7f8ba239f1a047","entry":"compute_derivative_matrices","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/derivatives.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/derivatives.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fc7f8ba239f1a047"}},{"code_sha256_prefix":"175fcc923c54404c","entry":"compute_f","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/sources.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/sources.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"175fcc923c54404c"}},{"code_sha256_prefix":"e1b020dc610f81eb","entry":"curl_E","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/derivatives.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/derivatives.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e1b020dc610f81eb"}},{"code_sha256_prefix":"c0c5035e89b60e25","entry":"curl_H","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/derivatives.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/derivatives.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c0c5035e89b60e25"}},{"code_sha256_prefix":"8b0444e741bdb47d","entry":"get_entries_indices","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/utils.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8b0444e741bdb47d"}},{"code_sha256_prefix":"32efd6e78703c636","entry":"grad_sp_mult_entries_reverse","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/primitives.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/primitives.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"32efd6e78703c636"}},{"code_sha256_prefix":"02bb35d49602cd88","entry":"grad_sp_mult_x_reverse","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/primitives.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/primitives.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"02bb35d49602cd88"}},{"code_sha256_prefix":"f1957dddb0eee8e5","entry":"jacobian","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/jacobians.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/jacobians.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f1957dddb0eee8e5"}},{"code_sha256_prefix":"6fa0121267278eeb","entry":"jacobian_forward","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/jacobians.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/jacobians.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6fa0121267278eeb"}},{"code_sha256_prefix":"11d243fbf6c19486","entry":"jacobian_reverse","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/jacobians.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/jacobians.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"11d243fbf6c19486"}},{"code_sha256_prefix":"e3020417beb6b8ca","entry":"make_sparse","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/utils.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e3020417beb6b8ca"}},{"code_sha256_prefix":"f559c4723f95f006","entry":"real","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/viz.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/viz.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f559c4723f95f006"}},{"code_sha256_prefix":"ae7d57329e86bec6","entry":"solve_linear","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/solvers.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/solvers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ae7d57329e86bec6"}},{"code_sha256_prefix":"90fb0f26be8ac45b","entry":"solver_eigs","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/modes.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/modes.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"90fb0f26be8ac45b"}},{"code_sha256_prefix":"149de24946952497","entry":"sp_mult","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/primitives.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/primitives.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"149de24946952497"}},{"code_sha256_prefix":"e77506199877251d","entry":"step_adam","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/optimizers.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/optimizers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e77506199877251d"}},{"code_sha256_prefix":"61e877158b641cc2","entry":"transpose_indices","repo":"twhughes/ceviche","repo_kind":"official","path":"ceviche/utils.py","file_url":"https://github.com/twhughes/ceviche/blob/HEAD/ceviche/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"61e877158b641cc2"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}