Skip to content

Commit

Permalink
fix error with python imaginary unit
Browse files Browse the repository at this point in the history
  • Loading branch information
trentfridey committed Aug 26, 2023
1 parent e8814d2 commit 66ba176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulationUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ export const InitialMinus = {
} as const

export const InitialI = {
src: '(basis(2,0) + j*basis(2,1))/np.sqrt(2)',
src: '(basis(2,0) + 1j*basis(2,1))/np.sqrt(2)',
label: '|i\\rangle',
key: 'y'
} as const

export const InitialMinusI = {
src: '(basis(2,0) - j*basis(2,1))/np.sqrt(2)',
src: '(basis(2,0) - 1j*basis(2,1))/np.sqrt(2)',
label: '|-i\\rangle',
key: '-y'
} as const
Expand Down

0 comments on commit 66ba176

Please sign in to comment.