You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/gates.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@ All examples in this guide use the following setup:
9
9
=== ":fontawesome-brands-python: Python"
10
10
11
11
```python
12
-
from pecos.simulators import SparseSim
12
+
from pecos.simulators import SparseStab
13
13
14
14
# Create a stabilizer simulator with 5 qubits
15
-
state = SparseSim(num_qubits=5)
15
+
state = SparseStab(num_qubits=5)
16
16
17
17
# Qubit indices for examples
18
18
q = 0
@@ -32,10 +32,10 @@ All examples in this guide use the following setup:
32
32
```
33
33
34
34
```hidden-python
35
-
from pecos.simulators import SparseSim
35
+
from pecos.simulators import SparseStab
36
36
37
37
# Create a stabilizer simulator with 5 qubits
38
-
state = SparseSim(num_qubits=5)
38
+
state = SparseStab(num_qubits=5)
39
39
40
40
# Qubit indices for examples
41
41
q = 0
@@ -62,7 +62,7 @@ fn main() {
62
62
63
63
PECOS supports two categories of quantum gates:
64
64
65
-
-**Clifford Gates**: Gates that map Pauli operators to Pauli operators. These can be efficiently simulated using stabilizer simulators like `SparseSim`.
65
+
-**Clifford Gates**: Gates that map Pauli operators to Pauli operators. These can be efficiently simulated using stabilizer simulators like `SparseStab`.
66
66
-**Non-Clifford Gates**: Rotation gates and other operations that require state vector simulation.
67
67
68
68
## Quick Reference
@@ -113,10 +113,10 @@ The examples below use a simulator instance. Run this setup code first:
113
113
=== ":fontawesome-brands-python: Python"
114
114
115
115
```python
116
-
from pecos.simulators import SparseSim
116
+
from pecos.simulators import SparseStab
117
117
118
118
# Create a stabilizer simulator with 5 qubits
119
-
state = SparseSim(num_qubits=5)
119
+
state = SparseStab(num_qubits=5)
120
120
121
121
# Qubit indices for examples
122
122
q = 0
@@ -1071,7 +1071,7 @@ These operations measure and then prepare the qubit in a specific eigenstate reg
0 commit comments