Bibliography:
The CNOT gate is a controlled quantum gate that operates on two qubits, flipping the second (operand) qubit if the first (control) qubit is set.
This gate is the first example of a controlled quantum gate that you should study.
To understand why the gate is called a CNOT gate, you should think as follows.
First let's produce a generic quantum state vector where the control qubit is certain to be 0.
On the standard basis:we see that this means that only and should be possible. Therefore, the state must be of the form:where and are two complex numbers such that
If we operate the CNOT gate on that state, we obtain:and so the input is unchanged as desired, because the control qubit is 0.
If however we take only states where the control qubit is for sure 1:
Therefore, in that case, what happened is that the probabilities of and were swapped from and to and respectively, which is exactly what the quantum NOT gate does.
So from this we understand more concretely what "the gate only operates if the first qubit is set to one" means.
Now go and study the Bell state and understand intuitively how this gate is used to produce it.
@cirosantilli/_file/nodejs/sequelize/raw/nodejs/sequelize/raw/parallel_update_async.js Updated 2025-01-10 +Created 1970-01-01
nodejs/sequelize/raw/parallel_update_worker_threads.js contains a base example that can be used to test what can happen when queries are being run in parallel. But it is broken due to a
sqlite3
Node.js package bug: github.com/mapbox/node-sqlite3/issues/1381...nodejs/sequelize/raw/parallel_update_async.js is an
async
version of it. It should be just parallel enough to allow observing the same effects.This is an example of a transaction where the SQL READ COMMITTED isolation level if sufficient.
These examples run queries of type:
UPDATE "MyInt" SET i = i + 1
Sample execution:which does:
node --unhandled-rejections=strict ./parallel_update_async.js p 10 100
- PostgreSQL, see other databases options at SQL example
- 10 threads
- 100 increments on each thread
The fear then is that of a classic read-modify-write failure.
But as www.postgresql.org/docs/14/transaction-iso.html page makes very clear, including with an explicit example of type
UPDATE accounts SET balance = balance + 100.00 WHERE acctnum = 12345;
, that the default isolation level, SQL READ COMMITTED isolation level, already prevents any problems with this, as the update always re-reads selected rows in case they were previously modified.If the first updater commits, the second updater will ignore the row if the first updater deleted it, otherwise it will attempt to apply its operation to the updated version of the row
Since in PostgreSQL "Read uncommitted" appears to be effectively the same as "Read committed", we won't be able to observe any failures on that database system for this example.
nodejs/sequelize/raw/parallel_create_delete_empty_tag.js contains an example where things can actually blow up in read committed.
Ciro Santilli's birth country.
An awesome country, with amazing people and natural resources, and without an evil government like China.
When visiting Brazilian cities coming from Europe, one of the things that shocks the most is the amount of motorcycles. It seems that the poorer the country, the less people's lives are worth, and the more motorcycles there are.
Another thing that was shocking is the amount of phone spam when you get a new SIM card, some legal and some likely illegal. Everyone is desperate for cash it seems on a poor country, and everyone fights hard for it.
During his teenage years, Ciro created an innovative new dance style combining elements of the various corporal practices that he studied a bit of across the years:
- Kung Fu/Taichi
- Brazilian Axé and Capoeira
- Breakdance
- Yoga
- Modern dance
Ciro later called this style Cirodance.
Ciro's legendary dance style was famous during his university years, when Ciro would go to parties and dance like made while mostly unsuccessfully trying to woo girls.
Ciro has always been critical of dancing conditions in University parties, where people would always be cramped up doing boring non-creative moves. Rather, Ciro would go to to the edges of the dance floor to have enough space for his amazing moves. There is a perhaps a parallel between such tendencies and Ciro's highly innovative personality. Also perhaps being cramped would have helped wooing said girls.
Ciro later quit dancing, to a large extent because it is too hard to find suitable dancing locations outside: Europe is too cold much of the year, also ground conditions have to be perfect, and no patience to book a dance room somewhere. Kid's playgrounds are ideal, but Ciro is afraid of dancing there because kids parent's would freak out.
Therefore, all evidence of Cirodance seems to have disappeared into the depths of the Internet. There used to be a notorious video on YouTube from around June 2010 entitled "A Piriguete da Poli !!" ("Poli's bitch" in Portuguese) with comment "Sem comentarios... foi a atraçao da cervejada" (No comments... was the main attraction of the beer party) dancing the Piriguete by MC Papo Brazilian Funk carioca song. But the video was removed at some point, they were likely afraid of getting sued, the URL was www.youtube.com/watch?v=T969azGjIeE as shown at www.facebook.com/cirosantilli/posts/133333123357495, but this was before Ciro noticed that every good thing on the web goes down and became an obsessive web archiver. But in any case, the title gives an idea of the amazing style of Ciro's furor poeticus Axé performance on that day. If the video owner ever reads this message, please please restore the video, or send Ciro a copy. TODO: which channel was it on? Knowing that Ciro would be able to try and contact them.
One legendary episode linked to Cirodance was when Ciro was living in Paris and jobless around 2014 (but not destitute as he leached from his girlfriend). Cirodance was his main physical activity at the time, and Place de la République, where the skateboarders hung out due to the perfect wide concrete floor and relatively close to Bastille where Ciro lived, was the perfect place for it. One cold dark winter evening, Ciro was practicing Cirodance with his headphones and crappy clothes (dirty public square floor, remember), when someone took him for a homeless person and offered him a bowl of soup! It must be said that Place de la République had many events of giving food to the poor. Ciro was a bit stunned, declined, and continued dancing. And so that was the day when a prestigious Polytechnicien was mistaken for a homeless person. And Ciro liked that.
As of 2021, Googling "cirodance" leads to www.youtube.com/watch?v=tyvv4ddL2so "Ciro Dance" in which comedian "Ciro Priello" (no Wikipedia page at the time) participates in a comedy show with a "silly dance" (TODO this likely has a name) described in the comments as:
It's a brand new Italian format. Some comedians are grouped into a room where they have full access to different kind of items and tools. Laughing means losing. Each of them can try to make the other laugh. The winner gets some money but all of them would have give that to charity.The dancing guy, Ciro, after only 10 minutes from the start did this nonsense dance. It's silly bit fun nonetheless I guess
The British are very pragmatic. This has good and bad effects.
For example, a good effect is that many things work pretty well, such as the government. This also helped industry develop.
A bad effect is that they sometimes settle on local minima forever. Examples:If it ain't totally broken, just let it continue forever! See also: Section "History of the University of Oxford".
- as of 2020, they are still using imperial units in everyday life, rather than International System of Units, which was setup by the French, who are much more idealistic, and can therefore can break from such insanity more often.
- the persistence of the insane system of colleges of the University of Oxford
- the incredibly late date of the decimal day in 1971, and that was partly due to the advent of the computer. That one was too much, even for the Brits, or maybe it helped that the greedy financiers were involved
- the British train system as of the 2010's, which is completely not unified, each part operated by a different company with different standards. Private and public unification efforts are ongoing, Trainline being one of the best/only private buy from any line unification approaches.
- Church of England priests can marry, which reduces the proportion of pedophiles. Also women were accepted starting in the 1970's in certain dioceses (non uniform rules as usual, typical of English pragmatism), including for bishop
December 2023: www.tudogostoso.com.br/receita/81176-gelatina-de-abacaxi-com-creme-de-leite.html Terribly explained recipe! Used 5 spoons of sugar rather than 10, and a 300ml cup of double cream. Turned out OK, except that the cream condensed all on top, and assumed the same coarse texture as when you do a fatty beaf and let it cool, so not so nice,
Maybe this would be more successful: receitas.globo.com/tipos-de-prato/doces-e-sobremesas/gelatina-de-abacaxi-4e64345bddf17214b4003e71.ghtml They also use condensed milk, and beat the cream with the jelly, so it might mix better? It didn't really.
June 2024: Now going for:For some reason it became too liquid this time, the jelly didn't work very well. Not sure why. The pinneapple was a bit large.
- 4 cups of water
- 1 spoon of sugar
- just drop 150 ml double cream on top after jelly and mix with spoon since anything else was pointless to get mixture
The "Chinese scholar" is one of the traditional male ideals of Chinese culture.
Particular attributes the ideal Chinese scholar would have include:It is in a sense sad (or awesome) that the computer has essentially replaced, or one may argue, enhanced beyong recognition, all of the traditional four arts, to the point that Ciro can't touch anything that is not a computer. Sometimes the old arts live on particularly closely though, e.g. in computer music, computer graphics and computer Go.
- mastery of the Four arts, which also implies the Four Treasures of the Study for caligraphy and painting
- live in a place that includes
This is just the most charming of the Four Great Classic Novels.
The definitive television series adaptation is obviously Journey to the West. It just manages to capture all the charms of Sun Wukong and Zhu Bajie.
As mentioned at hero108.fandom.com/wiki/The_108_Heroes there are only 3 women amongst the 108:
- 59 Hu Sanniang
- 101 Gu Dasao
- 103 Sun Erniang. She's the human flesh mantou lady!
Lit: fish timber question answer.
The dialog is also known as allegory for an incredibly deep philosophical discussion between an idealized wise woodcutter and a fisherman, e.g. mentioned at: www2.kenyon.edu/Depts/Religion/Fac/Adler/Writings/Fisherman%20and%20Woodcutter.pdf
This song is just too slow for Ciro Santilli to make much out of it.
Bibliography:
Only after Ciro became an adult did he finally understand that Sun Wukong was the basis for Dragon Ball as mentioned at: Figure "19th century illustration of the Journey to the West protagonist Sun Wukong". And that Sun Wukong was a million times more famous overall. Mind blown.
His given name "Wukong" literally means "the one who mastered the void" (Wu = Comprehend, Kong = void), so clearly a Dharma name. Edit: it is actually given in the novel, he was born without name. They seem to be Taoist however.
The family name sun1 孙 is the same character as "grandson", but most educated Chinese people seem to be able to recognize it as a reference to "monkey" from some archaic context not anymore in current usage.
The concept is a strong part of Water Margin.
The very first chapter opens with Grand Commander Hou disrespecting spirits by opening up a sealed tomb and unintentionally releasing 108 demons who presumably reincarnate as humans, a backstory to the events that follow years later.
This is well shown in the Japanese The Water Margin, but is skipped in the Chinese The Water Margin unfortunately.
The concept is also central to the Suikoden video game.
Actually, now that Ciro Santilli thinks about it, these were already likely meant as a "collectible" element by the author of the original book, as is strongly suggested by all the little illustrations of each character present on the Wikipedia page. Just like e.g. Catholic saints. It's Pokemon, but 2000 years earlier.
Ciro would notably feel many years later, that as he met random people online who were interested in improving eduction, or was otherwise networking to reach his goals, as if he were actually building up his 108 stars of destiny.
A central part, and perhaps the most interesting part of the novel, is how each character has been motivated by injustice to join the rebellion. This reminds Ciro of Final Fantasy VI
Unlisted articles are being shown, click here to show only listed articles.