Skip to content

Commit

Permalink
added the property of hadamard gate
Browse files Browse the repository at this point in the history
  • Loading branch information
Winter-Soren committed Mar 15, 2024
1 parent 0dd75ab commit 329d13d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
18 changes: 17 additions & 1 deletion docs/quantum-gates-circuits/hadamard-gate.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,23 @@ The Hadamard gate changes the state of the qubit from $|0\rangle$ to $\frac{1}{\

PS: you must be thinking that the operations performed by the Hadamard gate are similar to the Pauli gates. Well, you are right! The Hadamard gate is a combination of the Pauli-X and Pauli-Z gates. The Hadamard gate is the most versatile gate in quantum computing, as it can be used to create superposition, entanglement, and perform phase-flip and bit-flip operations.

## Property
Psst... only hadamard has it!!

When a qubit is in the state |0⟩, it means that it is definitely in the state |0⟩ with probability amplitude 1 and in the state |1⟩ with probability amplitude 0.

This means that Hadamard gate transforms this |0⟩ state into an equal superposition of |0⟩ and |1⟩. This means that after applying the Hadamard gate to the |0⟩ state, the qubit is in a state where it has a 50% chance of being measured as |0⟩ and a 50% chance of being measured as |1⟩. Mathematically, this transformation can be represented as:

$ H|0\rangle = \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle) $

Similarly, when a qubit is in the state |1⟩, it is definitely in the state |1⟩ with probability amplitude 1 and in the state |0⟩ with probability amplitude 0.

The Hadamard gate also transforms this |1⟩ state into an equal superposition of |0⟩ and |1⟩. So, after applying the Hadamard gate to the |1⟩ state, the qubit is in a state where it has a 50% chance of being measured as |0⟩ and a 50% chance of being measured as |1⟩. This transformation can be represented as:

$ H|1\rangle = \frac{1}{\sqrt{2}}(|0\rangle - |1\rangle) $



## Types
The Hadamard gate has only one type.

Expand All @@ -32,7 +49,6 @@ Let's take an example to demonstrate the Hadamard gate.

Certainly! Let's explore an example demonstrating the working of the Hadamard gate in excruciating detail.

## Hadamard Gate (H)
Suppose we have a qubit initially in the state $ |0\rangle $, represented as:

$$
Expand Down
5 changes: 3 additions & 2 deletions docs/quantum-gates-circuits/pauli-gate.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ sidebar_label: 2. Pauli Gate
## Definition

The Pauli gates are a set of three single qubit gates that are used to change the state of a qubit. The Pauli gates are:
_ `Pauli-X gate`
_ `Pauli-Y gate` \* `Pauli-Z gate`
- `Pauli-X gate`
- `Pauli-Y gate`
- `Pauli-Z gate`

## Effect on qubit

Expand Down

1 comment on commit 329d13d

@vercel
Copy link

@vercel vercel bot commented on 329d13d Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.