Skip to content

Commit 30e04c0

Browse files
DmitryVasilevskyDmitry Vasilevsky
and
Dmitry Vasilevsky
authored
Fixed message to display correct normalizing coefficient (#2280)
Multi-qubit systems Kata had incorrect normalizing coefficient of 0.5 in the explanatory message. Updated to include correct coefficient 1/sqrt(2). Co-authored-by: Dmitry Vasilevsky <dmitryv@microsoft.com>
1 parent 1fcdcc8 commit 30e04c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

katas/content/multi_qubit_systems/examples/MultiQubitSystems.qs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Kata {
2424
// The next lines entangle the qubits (don't worry about what exactly they do for now).
2525
H(qs[1]);
2626
CNOT(qs[0], qs[1]);
27-
Message("The system in now in entangled state 0.5(|00⟩ - |11⟩):");
27+
Message("The system in now in entangled state (1/sqrt(2))(|00⟩ - |11⟩):");
2828
DumpMachine();
2929

3030
// This returns the system into state |00⟩.

0 commit comments

Comments
 (0)