Skip to content

Commit

Permalink
Change mlt.basis to match description
Browse files Browse the repository at this point in the history
  • Loading branch information
Danii06 committed Oct 12, 2024
1 parent 852eeee commit f563c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion APLSource/mlt.apln
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
normalize ← {⍵÷0.5*⍨(dagger+.×⊢)⍵}

⍝ Create all basis states for ⍵ qubits
basis ← {{((⍴⍵),1)⍴⍵}¨↓↑1,⍨¨0/⍨¨1-⍨⍳⍵}
basis ← {¨↓↑1,⍨¨0/⍨¨1-⍨⍳2*⍵}

⍝ Test that we have a valid qubit
valid ← {
Expand Down

0 comments on commit f563c17

Please sign in to comment.