2025-06-02

First steps with#pennylane and chemistry: trying to find the ground state of a hydrogen molecule. ⚛️

Snippet of python code for quantum chemistry
2025-03-30

Thinking in two dimensions is absolute madness but is what Befunge expects us to do: in this video, I challenged myself to write a program that endlessly prints random 0s and 1s. Will it behave or completely fall off the grid? ➡️⬆️⬅️⬇️

2025-03-22

"Back to BASICs" #2: simple graphics. PEEK(ing) and POKE(ing) values from and to video memory locations allows programmers to draw on-screen. Pixel colors can be specified READing from DATA.

I enjoyed realizing logo as a tribute, using to read pixels from an image to generate DATA values (as a matter of fact, it's possible to generate the entire program!).

2025-03-14

Tetris or...programming language? Piet is an esoteric language using colored blocks to encode instructions and values to be managed in a stack!
Here I wrote a program printing a sequence of "8", inspired by Tetris game: I called it "the missing piece". Do you like it? 🙂 🟦🟧🟪🟩

Piet program printing a sequence of "8"s
2025-02-10

"Back to BASICs" #1: reading constants, using string concatenation and applying some flow control to solve exercises in a dusty book from the 80s. Remember the days when GOTOs ruled the coding world?

Solving BASIC programming language exercises to print a pyramid of stars
2025-01-23

🎯 Back to my quantum experiments!

Over the past few days, I’ve been trying to tackle the n-queens problem with a quantum approach, using the Quantum Approximate Optimization Algorithm (QAOA) and Qiskit. ⚛️💻

To make it work, I had to reframe n-queens as an optimization problem - breaking it down into a set of constraints and an objective function. I really like how quantum computing pushes us to rethink traditional problems in different ways.💡

4-queens problem solved with Quantum Approximate Optimization AlgorithmPretty-printed solution for 4-queens problem, tackled with Quantum Approximate Optimization Algorithm
2025-01-11

"The late night tinkering projects #18: Matter protocol on a budget"

I'v been diving into the world of Matter protocol! 🏡✨ Initially, I thought I’d need to buy (or build!) a Thread border router just to get Matter-over-Thread up and running. But guess what? You can skip the extra hardware and roll with Matter-over-WiFi using just an ESP32 board! 💡 No additional gadgets required, just your phone! 🚀

1littleendian.medium.com/matte
dev.to/antigones/matter-protoc

2025-01-04

Exactly 42 lines of code (heavily inspired from swissted.com)

Swiss design-like graphics
2025-01-02

"Layers upon layers upon layers." - suddenly Seigaiha pattern 🌊

Python generated Seigaiha pattern
2025-01-01

"Vertical or horizontal lines only": inspired by the italian designer Enzo Mari.

Generated art inspired by italian designer Enzo Mari
2024-12-01

After "Elf on a shelf", "Elf with Self" and .

Xmas image with elves on a led matrix
2024-11-14

But where can "exact cover" be found in real life problems? A good example could be "Puzzle-A-Day" game: the player here is required to cover the entire calendar board with some pieces, only leaving the current day and the current month cells out. Solving this problem is in fact equivalent to find a set cover over a certain representation of the board and so "Algorithm X+Dancing Links" strategy can be applied. I applied that algorithm to find a solution for today, Nov. 14.

A solution for "Puzzle-A-Day" game in real lifeA solution for "Puzzle-A-Day" game calculated with AlgorithmX+Dancing Links
2024-11-09

"Exact cover" models problems where the user must cover all the cells in a board, placing and rotating a given set of pieces.
"Algorithm X" solve this kind of issues and when backtracking is not enough, "Dancing links" uses efficient data structures to obtain a solution. 🚀

Matrix to execute Algorithm X onExact cover set for a matrix
2024-11-03

This weekend, I spent some time developing a simple “Queens” game solver with backtracking in .
In “Queens”, the player is required to place N queens on a board, one queen per row, one per column and one per color area. The player must not place queens on adjacent cells.

The video shows a solution for a given instance of the riddle and the last 100 console animated backtracking iterations to solve it.

boosted:
2024-10-30

We are feeling generous this Halloween 🎃

Stop what you're doing and head to 2025.pycon.it/newsletter to subscribe to our newsletter for a spooky surprise tomorrow! 👻

We promise you won't regret it!

#PyConIT2025

2024-10-28

Pumpkins are part of lore (even when they’re 3D printed!) and this year, it’s time to put pumpkins…on the Cloud! ☁️
Here I used an to consume messages from and an IR emitter to remote control the candle.
No matter if the candle is near or far, IR signals can be "bridged" over the Cloud! Also, the candle can be controlled from an app, a function, whatever…! Spooky, isn’t it? 🎃

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst