Skip to content

Commit

Permalink
setting for review +-flowchart changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed May 27, 2024
1 parent 291dd91 commit b7b613a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/src/datastructures.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

## [Choosing Appropriate Tableau Data Structure](@id Choosing-Appropriate-Data-Structure)

There are four different data structures used to represent stabilizer states. If
you will never need projective measurements you probably would want to use
[`Stabilizer`](@ref). If you require projective measurements, but only on pure
states, [`Destabilizer`](@ref) should be the appropriate data structure. If
mixed stabilizer states are involved, [`MixedStabilizer`](@ref) would be
necessary.

```@raw html
<div class="mermaid">
%%{ init: { 'flowchart': { 'curve': 'basis' } } }%%
graph TB
A["<code>Choosing Appropriate Data Structure</code>"]
flowchart TB
A["<code>Tableau Data Structure Selection</code>"]
class A startEnd
A -->|<code>Are the states pure?</code>| B{ }
Expand Down Expand Up @@ -39,13 +45,6 @@ graph TB
</div>
```

There are four different data structures used to represent stabilizer states. If
you will never need projective measurements you probably would want to use
[`Stabilizer`](@ref). If you require projective measurements, but only on pure
states, [`Destabilizer`](@ref) should be the appropriate data structure. If
mixed stabilizer states are involved, [`MixedStabilizer`](@ref) would be
necessary.

[`Stabilizer`](@ref) is simply a list of Pauli operators in a tableau form. As a
data structure it does not enforce the requirements for a pure stabilizer state
(the rows of the tableau do not necessarily commute, nor are they forced to be
Expand Down

0 comments on commit b7b613a

Please sign in to comment.