Filter löschen
Filter löschen

How can write in MATLAB the following expression?

1 Ansicht (letzte 30 Tage)
Zar
Zar am 8 Jan. 2023
Beantwortet: Alan Stevens am 8 Jan. 2023
|0>=1
0
0
|1>= 0
1
0
  1 Kommentar
Jan
Jan am 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 .

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Quantum Mechanics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by