It is known that there are an infinite number of worlds, simply because there is an infinite amount of space for them to be in. However, not every one of them is inhabited. Therefore, there must be a finite number of inhabited worlds. Any finite number divided by infinity is as near to nothing as makes no odds, so the average population of all the planets in the Universe can be said to be zero. From this it follows that the population of the whole Universe is also zero, and that any people you may meet from time to time are merely the products of a deranged imagination. — The Hitchhiker’s Guide to the Galaxy
So we start off with a glass.
We first develop a way to save the observable quantum state of the subatomic particles that make up the glass. This effectively saves the quantum state that is the entire glass.
We then shatter the glass.
We collect up all the pieces and once we a majority of them we “re-observe” the pieces with the quantum state we previously saved.
By inducing an observation of the quantum state of the subatomic particles from the whole glass, the subatomic particles of the shattered glass resume their previous state and reform the glass as if it was never shattered. We may need to somehow “de-observe” the current state of the subatomic particles.
The next step would be to remove the need for the original subatomic particles at all.