How can write in MATLAB the following expression?

2 views (last 30 days)
|0>=1
0
0
|1>= 0
1
0
  1 Comment
Jan
Jan on 8 Jan 2023
Without any explanations the readers have to guess, what this should mean. This is not a useful way to ask a question. Please read: How to ask a good question .

Sign in to comment.

Accepted Answer

Alan Stevens
Alan Stevens on 8 Jan 2023
Try
ket0 = [1; 0; 0]
ket1 = [0; 1; 0]

More Answers (0)

Categories

Find more on Quantum Mechanics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!