Skip to content

Commit 2bb97ff

Browse files
fix typo in qudit example
1 parent 0a93cbe commit 2bb97ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/vqe_qudit_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
r"""
22
VQE on QuditCircuits.
33
44
This example shows how to run a simple VQE on a qudit system using
@@ -41,7 +41,7 @@ def vqe_forward(param, *, nqudits: int, d: int, nlayers: int, J: float, h: float
4141
- Entangle neighboring pairs with RXX on subspaces (0,1)
4242
"""
4343
if d < 3:
44-
raise ValueError("This example assblumes d >= 3 (qutrit or higher).")
44+
raise ValueError("This example assumes d >= 3 (qutrit or higher).")
4545

4646
S = tc.quditgates._x_matrix_func(d)
4747
Z = tc.quditgates._z_matrix_func(d)
@@ -99,7 +99,7 @@ def main():
9999
parser.add_argument(
100100
"--h", type=float, default=0.6, help="Field strength for Zc terms"
101101
)
102-
parser.add_argument("--steps", type=int, default=200, help="Optimization steps")
102+
parser.add_argument("--steps", type=int, default=300, help="Optimization steps")
103103
parser.add_argument("--lr", type=float, default=0.05, help="Learning rate")
104104
args = parser.parse_args()
105105

0 commit comments

Comments
 (0)