A 5-qubit quantum computer

Let’s take this even further and look at a 5-qubit quantum computer.

Using Hadamard and CNOT gates we can create a state where we either measure all zeros or all ones. This is a maximally entangled state. And it even has a special name: GHZ state (named after three guys: Greenberger, Horne, and Zeilinger). It can be used to assess how well entanglement works on a real quantum device. See below for a real 5-qubit device that IQM Quantum Computers built.

!
Create a GHZ (Greenberger, Horne and Zeilinger) state for 5 qubits! How many gates do we need at least to create this state?
My measurements

After 1000 measurements we get the following distribution:

How many gates do we need at least to create this state?

Did you know? Finland's first quantum computer has 5 qubits and was delivered by IQM.