Skip to content

Commit

Permalink
More details about projectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandMacDoland committed Dec 14, 2023
1 parent 92314eb commit 5dd7e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced_tutorials/projectors.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This section introduces the `ProjectorBlock` (defined [here](qadence.blocks.primitive.ProjectorBlock)) as an implementation for the the quantum mechanical projection operation. It evaluates to the outer product of a ket and a bra expressed as bitstrings.
This section introduces the `ProjectorBlock` (defined [here](qadence/blocks.md)) as an implementation for the the quantum mechanical projection operation. It evaluates to the outer product of a ket and a bra expressed as bitstrings.

!!! warning
Projectors lead to non-unitary computations.
Expand All @@ -17,4 +17,4 @@ projector_matrix = block_to_tensor(projector_block)
print(f"projector matrix = {projector_matrix}") # markdown-exec: hide
```

Other standard operations can be expressed as projectors: for instance projector controlled-unitary gates or the number operator $N$.
Other standard operations can be expressed as projectors: for instance, the number operator $N=\dfrac{1}{2}(I-Z)=|1\rangle\langle 1|$ is used for projector controlled-unitary gates: $\textrm{CNOT}(i,j)=N(i)\otimes(X(j)-I(j))$

0 comments on commit 5dd7e59

Please sign in to comment.