Print probabilities or biases (polarizations) of individual qubits

The commands below internally use the same routine as that for calculating reduced density operators (See Sec. 9). Let the reduced density operator of the i-th qubit be $ \tilde\rho_i=\begin{pmatrix}a_i&b_i\\ b_i^*&1-a_i\end{pmatrix}$. Then the probability of the i-th qubit being 0 is $ a_i$, and the superficial bias of it is defined as $ {}^s\varepsilon_i=2a_i-1$. The values of $ a_i$ and $ {}^s\varepsilon_i$ may be changed even by single-qubit rotation gates. On the other hand, there is a definition of polarization that is independent of a macroscopic spin direction: Let $ {}^d\tilde\rho_i=\begin{pmatrix}\lambda_i&0\\ 0&1-\lambda_i\end{pmatrix}$ be the matrix obtained from a unitary diagonalization of $ \tilde\rho_i$ ( $ \lambda_i\ge 0.5$). Then the intrinsic bias of the qubit is defined as $ {^i}\varepsilon_i=2\lambda_i-1$.

  1. Every probability of each specified qubit being measured as 0 is printed by the command:
    bprobs (bit labels);
  2. All the probabilities of individual qubits being measured as 0 are printed by the command:
    bprobs;
  3. The intrinsic biases of specified individual qubits are printed by the command:
    ibiases (bit labels);
  4. All the intrinsic biases of individual qubits are printed by the command:
    ibiases;
  5. The superficial biases of specified individual qubits are printed by the command:
    sbiases (bit labels);
  6. All the superficial biases of individual qubits are printed by the command:
    sbiases;
Example:
	 > init-mixed 0.6 0.7 0.8;
	 > bprobs(1-3);
	1:0.6 2:0.7 3:0.8 
	 > sbiases;
	1:0.2 2:0.4 3:0.6 
	 > H(2);
	 > sbiases;
	1:0.2 2:0 3:0.6 
	 > ibiases;
	1:0.2 2:0.4 3:0.6
root
2004-06-15