Print a joint probability

The joint probability of qubits specified by ``bit labels'' being in the state specified by binary numbers `` $ x_a~~x_b~~x_c~~... $'' is output to the stdout by the command
prob (bit labels, $ x_a~~x_b~~x_c~~... $);
For instance,
prob (1 3-5 8 9, 0 1 0 0 1 0);
shows the joint probability $ \mathrm{Pr}(0_1 1_3 0_4 0_5 1_8 0_9)$ (subscripts are the labels of qubits).



root
2004-11-07