# Quantum Programming using Fortran

**URL:** <https://fortran-lang.discourse.group/t/quantum-programming-using-fortran/10776>\
**Category:** Uncategorized\
**Created:** [March 12, 2026, 10:29am UTC](https://fortran-lang.discourse.group/t/quantum-programming-using-fortran/10776 "2026-03-12T10:29:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hkvzjal](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/hkvzjal/32/3055_2.png) [@hkvzjal](https://fortran-lang.discourse.group/u/hkvzjal)\
**Post date:** [March 12, 2026, 1:58pm UTC](https://fortran-lang.discourse.group/t/quantum-programming-using-fortran/10776/3 "2026-03-12T13:58:49Z")

</div>

Quantum Programming is not my topic of expertise but it is something that I read about for fun and I did wonder if there would be a Fortran API out there.

So I’ll just give you my two cents because why not 🙂

If you already automated generating the C API, I think the easiest path forward would be to automate a companion twin Fortran API using `iso_c_binding` to expose the C procedures within a Fortran module.

> **[iso\_c\_binding in Fortran Wiki](https://fortranwiki.org/fortran/show/iso_c_binding)**

> [@Iso\_c\_binding: Looking for practical example of how it helps with mangling](https://fortran-lang.discourse.group/t/iso-c-binding-looking-for-practical-example-of-how-it-helps-with-mangling/3393):
>
> After reading a wikipedia about [mangling](https://en.m.wikipedia.org/wiki/Name_mangling), I feel that I don’t understand the need for iso\_c\_binding. Question: Can you give me a simple practical example which shows the importance of iso\_c\_binding. Basically, I’d like to know what can happen without it. I’m looking for intuition in an explanation. I’m looking for a complete example. I want to really really understand it, so give me your best explanation. Thank you,

> **[Exploring ISO\_C\_BINDING and type-bound procedures](https://rgoswami.me/posts/iso-c-type-bound-fortran/)**
>
> A closer look at the standard Fortran C compatibility layer by exploring objects and linkers
> Background Derived types and their interoperability have been covered previously in the context of usage from Python. However, much of the focus of the...

> **[C interoperability in Fortran Wiki](https://fortranwiki.org/fortran/show/C+interoperability)**

---

_[View the full topic](https://fortran-lang.discourse.group/t/quantum-programming-using-fortran/10776)._
