Need to compress a massive PDF file on Linux?
Using CLI tools, you can get an awesome ~90% compression rate! You need to leverage #Djvu format (require `pdf2djvu` and `ddjvu`)

```
compress-pdf input-big.pdf [compressed.pdf]
```

Full snippet
https://gist.github.com/edouard-lopez/e2d53cee78d0bfa75b6a5bacac363030

#Fish #shell #PDF #CompressionRatio #CLI

compress-pdf (90% compression with simple commands)

compress-pdf (90% compression with simple commands) - README.md

Gist
We employ many-body Pauli observables to convey our bits, and each set of constructable commuting observables defines one measurement basis. For n qubits, this approach shows an asymptotic #CompressionRatio of O(n^2/2^n) and better #SuccessProbability than prior QRACs for n≥16.
Many congrats specially to Giancarlo Gatti for this great work and of course to D. Huerga and E. Solano for the collaboration.