Sam Westrick's Avatar

Sam Westrick

@shwestrick.bsky.social

assistant professor @NYU Courant CS :: programming languages :: parallel computing :: music :: lead dev of the MaPLe compiler (https://github.com/mpllang/mpl) https://cs.nyu.edu/~shw8119/

623 Followers  |  153 Following  |  212 Posts  |  Joined: 26.07.2023  |  2.2423

Latest posts by shwestrick.bsky.social on Bluesky

check out the paper for more details!

cs.nyu.edu/~shw8119/25/...

24.10.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Additionally, OAC outperforms existing quantum circuit optimizers, often producing a better quality final circuit in orders of magnitude less time.

24.10.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

In our experiments, we confirm that OAC performs strictly better than the naive chunked strategy, sometimes significantly so, removing thousands more gates from large circuit instances. This confirms that "melding" is important for circuit quality.

24.10.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

We call our algorithm OAC, for "optimize and compact".

We prove that this algorithm only calls the oracle productively: the number of additional calls to the oracle (due to melding, etc) is bounded by the number of optimizations found.

24.10.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Melding can in turn expose even more opportunities for optimizations of individual chunks. So, after melding, we can continue optimizing recursively until convergence on a circuit which is (in some sense) "locally optimal" relative to the size-constrained oracle.

24.10.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

To address this, we develop a "melding" algorithm which identifies and performs additional optimizations across the boundaries.

24.10.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

But this immediately raises a question. Surely, this approach must miss optimizations that are possible across the boundaries between pieces, right?

(As you might expect, the answer is yes.)

24.10.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

thinking of these tools as black box optimizers or "oracles", a natural strategy would be to chunk up the circuit into small pieces and apply the oracle to each piece. This easily guarantees that the exponential searches are bounded and do not explode (in time/space)

24.10.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

the key challenge here is optimizing a large quantum circuit (with, e.g., hundreds of thousands of gates)

many existing tools are essentially superoptimizers, with exponential search spaces, and therefore can only handle "small" circuits in a reasonable amount of time/space

24.10.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

happy to announce that, earlier this Fall, our QCE'25 paper "Local Optimization of Quantum Circuits" received a Best Paper award!

cs.nyu.edu/~shw8119/25/...

24.10.2025 16:40 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

These days, you can buy such a machine for ~$3K. That’s a lot of compute per buck. Medium-scale parallelism is quite affordable

(β€œMedium scale” meaning large-ish single-node.)

22.10.2025 23:25 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I believe the idea (in ~2015) was: if you’re considering purchasing a car, consider spending your money on this 72-core 1TB multicore machine instead. They’re a similar price!

22.10.2025 23:24 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@anil.recoil.org might find this interesting!

22.10.2025 23:23 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

for even more context: Laxman has been exploring the limits of what is possible on single-node parallel machines. This talk is about a recent SPAA paper.

They’re getting great scalability up to 8TB on a single node

22.10.2025 23:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

for context, this slide is ~10 years old

22.10.2025 21:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

the famous Nissan Leaf slide returns!

Laxman Dhulipala emphasizes the benefits of single-node, shared memory parallelism

22.10.2025 21:50 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1
Post image

one day, my apartment will look like this

18.10.2025 01:31 β€” πŸ‘ 22    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0
Post image Post image

Extremely cool work on a mechanically verified garbage collector for OCaml using F* by Sheera Samsu, @kcsrk.info and colleagues at the OCaml Workshop #icfpsplash25

17.10.2025 03:31 β€” πŸ‘ 22    πŸ” 7    πŸ’¬ 0    πŸ“Œ 0
Post image

Martin Elsman wraps up the day with Compositional Deep Argument Flattening, a method for summarizing flattening transformations to enable optimizations across compilation unit boundaries

16.10.2025 13:36 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Yanni Lefki (together with Arthur CharguΓ©raud) develop β€œBinding Boolean Expressions”, a core calculus for generalized pattern matching, guards, and case statements

16.10.2025 13:33 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

Samuel Vivien presents his recent work (together with Didier RΓ©my) on Implicit Modules, an important step towards the long-standing Modular Implicits proposal for OCaml: a way to get the compiler to insert the function you need, automatically

16.10.2025 13:26 β€” πŸ‘ 9    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0

When putting together the program, I noticed that there hadn’t been much CakeML at the ML Family Workshop, at least in the past decade.

Yong Kiam’s talk was excellent! πŸ‘

I am endlessly impressed with CakeML β€” such an exciting project

16.10.2025 13:14 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image Post image Post image

Yong Kiam overviews the design of CakeML and all of the successes of the project over the years!

16.10.2025 13:14 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Viviana Bono tackles representing structured knowledge databases as CDuce types

www.cduce.org

16.10.2025 09:08 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image Post image

Wenhao Tang motivates β€œFreezing Bidirectional Typing”, a new type inference scheme with some cool 🧊 and spooky πŸ‘» features

16.10.2025 09:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

54 bit integers by default on the JavaScript backend! What a cool trick

16.10.2025 08:59 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Mizuki Arata presents LunarML β€” an impressive implementation!! It compiles standard ML down to either Lua or JavaScript. Tons of features. Check it out! github.com/minoki/LunarML

16.10.2025 05:23 β€” πŸ‘ 4    πŸ” 3    πŸ’¬ 1    πŸ“Œ 0
Post image

John presents new compiler optimization work inside of SML/NJ β€”

16.10.2025 03:07 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Dave is up! Calling in all the way from the Oregon coast

16.10.2025 02:38 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

you can follow the live feed here:

www.youtube.com/live/8B4VrU_...

16.10.2025 02:09 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

@shwestrick is following 20 prominent accounts