virtual-casing
Installation
C++ Executable
In addition to having C++ compiler (tested with GCC-9 and newer) that supports C++17 standard and OpenMP, install FFTW and LAPACK libraries. Intel MKL provides both of them. Also install cmake package. The CMake setup is written in a monolithic way so we have to install python dependencies also, even though they are strictly not required. On the python side, we require python header files and Numpy. All of them can be installed by using pip.
pip install cmake numpy
Create a folder called build and switch to build directory.
mkdir build; cd build
Run cmake from within the build folder.
cmake ..
If the above command succeeds, we can go to the next step. Build the vc_testing executable by running
make vc_testing
If the compilation is successful, you will have vc_testing in the build folder.
Optionally, set the environment variable LIBXSMM_DIR to a build of LIBXSMM
(version 2.0 or newer) before running cmake, or before installing the Python package, to use it for small matrix
products. The Makefile uses it in the same way.
Python package
To install the python package use pip:
python -m pip install .
To build the wheel use:
python -m build --wheel
which can be installed by:
pip install dist/virtual_casing*.whl
Testing
Run the tests using
python -m unittest test -v
Citing virtual-casing
If you use virtual-casing, or code derived from it, please cite the software and the papers below (also listed in CITATION.cff):
- D. Malhotra, B. Medasani, M. Landreman, C. Smiet, A. Cerfon, virtual-casing: the virtual-casing principle on toroidal surfaces, https://github.com/hiddenSymmetries/virtual-casing.
- D. Malhotra, BIEST: Boundary Integral Equation Solver for Taylor states, https://github.com/dmalhotra/BIEST, doi:10.5281/zenodo.23511944.
- D. Malhotra, T. Li, R. Blackwell, A. Rahimian, W. Yan, X. Gao, SCTL: Scientific Computing Template Library, https://github.com/dmalhotra/SCTL, doi:10.5281/zenodo.23511629.
- D. Malhotra, A. J. Cerfon, M. O'Neil, E. Toler, "Efficient high-order singular quadrature schemes in magnetic fusion," Plasma Physics and Controlled Fusion 62 (2020) 024004, doi:10.1088/1361-6587/ab57f4.
- D. Malhotra, A. Cerfon, L.-M. Imbert-Gérard, M. O'Neil, "Taylor states in stellarators: A fast high-order boundary integral solver," Journal of Computational Physics 397 (2019) 108791, doi:10.1016/j.jcp.2019.06.067.
BibTeX
@software{virtualcasing,
author = {Malhotra, Dhairya and Medasani, Bharat and Landreman, Matt and Smiet, Chris and Cerfon, Antoine},
title = {virtual-casing: the virtual-casing principle on toroidal surfaces},
url = {https://github.com/hiddenSymmetries/virtual-casing},
version = {0.3.0},
year = {2026}
}
@software{biest,
author = {Malhotra, Dhairya},
title = {{BIEST}: Boundary Integral Equation Solver for {Taylor} states},
url = {https://github.com/dmalhotra/BIEST},
doi = {10.5281/zenodo.23511944},
version = {1.0.0},
year = {2026}
}
@software{sctl,
author = {Malhotra, Dhairya and Li, Tianyue and Blackwell, Robert and Rahimian, Abtin and Yan, Wen and Gao, Xuanzhao},
title = {{SCTL}: Scientific Computing Template Library},
url = {https://github.com/dmalhotra/SCTL},
doi = {10.5281/zenodo.23511629},
version = {2.0.0},
year = {2026}
}
@article{malhotra2020quadrature,
author = {Malhotra, Dhairya and Cerfon, Antoine J. and O'Neil, Michael and Toler, Evan},
title = {Efficient high-order singular quadrature schemes in magnetic fusion},
journal = {Plasma Physics and Controlled Fusion},
volume = {62},
number = {2},
pages = {024004},
year = {2020},
doi = {10.1088/1361-6587/ab57f4}
}
@article{malhotra2019taylor,
author = {Malhotra, Dhairya and Cerfon, Antoine and Imbert-G{\'e}rard, Lise-Marie and O'Neil, Michael},
title = {Taylor states in stellarators: A fast high-order boundary integral solver},
journal = {Journal of Computational Physics},
volume = {397},
pages = {108791},
year = {2019},
doi = {10.1016/j.jcp.2019.06.067}
}
License
virtual-casing is licensed under the Apache License 2.0. The NOTICE file lists the authors and must be kept in any redistribution, including ports to other languages. It also has the authors' requests on crediting them and on AI use.
Metadata
Release files for virtual-casing 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| virtual_casing-0.3.1.tar.gz | 4.0 MB | With provenance | Details |
Built distributions (wheels)
Total release size: 100.5 MB
Release files / virtual_casing-0.3.1.tar.gz
| Download URL | virtual_casing-0.3.1.tar.gz |
|---|---|
| Size | 4.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71f11280f7bf41f65ed6c19ec19a2254433acf191d4ed2ef623702b5205509c5
|
|
BLAKE2b-256 checksum How to use checksums |
de7c3bd3a89dacd9afd60864cc85928baf3c110a40a63f938dba81905f9a222b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d82cba8abe5a93fd129e2b8bea9e54df8e0823155f48e939396db77796101fef
|
|
BLAKE2b-256 checksum How to use checksums |
3d0eee9ace8c18c39723da56e2983251197786c53e7ca76025dcd1204c4985c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp314-cp314-macosx_15_0_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp314-cp314-macosx_15_0_x86_64.whl |
|---|---|
| Size | 8.7 MB |
| Tags | CPython 3.14 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
a9b2e11db84bd768f3f8afd6a4bd59866a8d2f1fc876ada7d2f539d699c5151a
|
|
BLAKE2b-256 checksum How to use checksums |
64345efd84e2dad751d1c9a9d192545d89d39953326ee81e7a4200ad7fb508ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp314-cp314-macosx_15_0_arm64.whl
| Download URL | virtual_casing-0.3.1-cp314-cp314-macosx_15_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.14 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ec1b38820ab158d2f66b0f5f84a4024c43263cc6fb0f5e09d5cdc6c5cae696da
|
|
BLAKE2b-256 checksum How to use checksums |
fccecdc80e1a322697491b9145be8c6e172c2204b86495bc52b189d240c833af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a9581eab15bdc38d3b63de7d5e8fe9e24a6e951a6b2d10118728a3f07804d82c
|
|
BLAKE2b-256 checksum How to use checksums |
67c6a609ae4cc296026232237c1a191f45c5e3dcf8f43bd6fd7a00c5d07f3dae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp313-cp313-macosx_15_0_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp313-cp313-macosx_15_0_x86_64.whl |
|---|---|
| Size | 8.7 MB |
| Tags | CPython 3.13 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
82b4e1073211479acbea81a818e900488b7337ad38cfa14429bdfbfe2eba0e4b
|
|
BLAKE2b-256 checksum How to use checksums |
c378d88c732df782686402064f0ee183052401dc88c8854b94632a10e163732a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp313-cp313-macosx_15_0_arm64.whl
| Download URL | virtual_casing-0.3.1-cp313-cp313-macosx_15_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.13 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
24e8bd606a151d98f43fe3cc6b2cef8895d42a111c9aaccfb5ff478331bb1284
|
|
BLAKE2b-256 checksum How to use checksums |
a15bd924f31cbe72b4a5ce812c01b1f7f56d920b6dbfe6c712b54cd55307cbd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c5a958c0055a6d09b5267db316b6bf6ce65a93d30cc090a6075dc6c68f63b14a
|
|
BLAKE2b-256 checksum How to use checksums |
b79af316c4fa173be17671ef3eed28349212bf385abdcf246458aa8642fde092
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp312-cp312-macosx_15_0_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp312-cp312-macosx_15_0_x86_64.whl |
|---|---|
| Size | 8.7 MB |
| Tags | CPython 3.12 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
f55c07bd20ebd5b792d326883699f83c592a1fff737499ab76fdb3d0f1011c84
|
|
BLAKE2b-256 checksum How to use checksums |
1b3e810fee8bc7060db7a666718e264b15a48375e462ade92d3083672c2bfa0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp312-cp312-macosx_15_0_arm64.whl
| Download URL | virtual_casing-0.3.1-cp312-cp312-macosx_15_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.12 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8a30609b290974d1f6ceb7e4fc4025fdd216046a8158f388c00907302f77f77d
|
|
BLAKE2b-256 checksum How to use checksums |
045682a86a14de8e2d68f4c6f71c623403c9d97658c503fa7a07c3b6b5e9afa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a58e4e047a581aedcc08fa3cca8b193f433b87a1d118be8b7c8d733216b8a427
|
|
BLAKE2b-256 checksum How to use checksums |
b1deb6dea97c04e1c31225bcff6003b0a28372b577451383f9c2f2be8cbce440
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp311-cp311-macosx_15_0_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp311-cp311-macosx_15_0_x86_64.whl |
|---|---|
| Size | 8.7 MB |
| Tags | CPython 3.11 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
66c4d10f0e28dfa8e9c8c533ff4f2a53c7a863e3d8c186a85d0702b149c94c38
|
|
BLAKE2b-256 checksum How to use checksums |
70e9ff774dd9f8836d00dbdcb29330d54eac51090226168135b3526ebc9057b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp311-cp311-macosx_15_0_arm64.whl
| Download URL | virtual_casing-0.3.1-cp311-cp311-macosx_15_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.11 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
05adbf50fb78b2f7cfb9e5852c0852448f9c5f62717988e140fd93f2115f5196
|
|
BLAKE2b-256 checksum How to use checksums |
04d3d4cddcc2e459ebe1e1c5f1a5dd7f25a0d11bb1c8bd49f73b83c72b6801ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f818ccfeb42d92ff350c036fd598b44a3fca55101a89c6dc5f15c5daa1fe94a0
|
|
BLAKE2b-256 checksum How to use checksums |
a2f68ee92d9652eb7596543330a0719c539b2502184e295b8f03ded3262cb4e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp310-cp310-macosx_15_0_x86_64.whl
| Download URL | virtual_casing-0.3.1-cp310-cp310-macosx_15_0_x86_64.whl |
|---|---|
| Size | 8.7 MB |
| Tags | CPython 3.10 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
7e707645337b30da810f73555a8c98b4a3f5cbc3e2152c48c0e4bcd222f76010
|
|
BLAKE2b-256 checksum How to use checksums |
adf18741bfb4e1862e7b52bb395a9f2bb91086b094292f6eaa36935b8f85daf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / virtual_casing-0.3.1-cp310-cp310-macosx_15_0_arm64.whl
| Download URL | virtual_casing-0.3.1-cp310-cp310-macosx_15_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.10 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
37d4fc9f1ed42bda1c1634d1dec1cf7aa6b246fb461f3ff54277e54702103ba9
|
|
BLAKE2b-256 checksum How to use checksums |
ff93a6480af35c6419bb73b6a4d66a95121cea084c00b524a29a0712c261509e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logSecurity for virtual-casing 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 16 files in this release have been uploaded with provenance metadata.
Attestation for virtual_casing-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.