ψQuantum PL WIKITHE LANGUAGE OF QUANTUM COMPUTATION中文
VOLUME IV · Logic & verification

Quantum Predicate Connectives and Noncommutativity

Quantum Predicate Connectives and Noncommutativity

Negation, tensor and convex combinations, measurement-conditioned assertions, and commutativity of weakest preconditions.

An effect is a bounded Hermitian operator 0⪯A⪯I0\preceq A\preceq I. Its satisfaction value tr(Aρ)\mathrm{tr}(A\rho) need not be Boolean. This entry follows §6.1 and §6.1.2; printed pages 94 and 100 (PDF pages 4 and 10) were checked visually. See Quantum Hoare Logic.

Four connective constructions

Negation is I−AI-A. For normalized states its value is 1−tr(Aρ)1-\mathrm{tr}(A\rho); for partial density operators replace 1 by tr(ρ)\mathrm{tr}(\rho).

Assertions on separate registers combine as A⊗BA\otimes B. On product input their value factors as tr(Aρ1)tr(Bρ2)\mathrm{tr}(A\rho_1)\mathrm{tr}(B\rho_2). Entangled input need not factor. On overlapping spaces, ABAB need not even be Hermitian. Commuting effects do have an effect product, but that product should not be identified with every proposed logical intersection operation.

Convex combinations ∑ipiAi\sum_i p_iA_i remain effects for pi≥0p_i\geq0, ∑ipi≤1\sum_i p_i\leq1. Measurement-conditioned combination is ∑mMm†AmMm\sum_mM_m^\dagger A_mM_m, where ∑mMm†Mm=I\sum_mM_m^\dagger M_m=I. It combines assertions selected by measurement outcomes rather than applying Boolean disjunction to an unchanged input. These constructions support auxiliary rules and case reasoning.

A noncommuting example

For A=∣0⟩⟨0∣A=|0\rangle\langle0| and B=∣+⟩⟨+∣B=|+\rangle\langle+|,

AB=12(1100),BA=12(1010).AB=\frac12\begin{pmatrix}1&1\\0&0\end{pmatrix},\qquad BA=\frac12\begin{pmatrix}1&0\\1&0\end{pmatrix}.

They differ, and ABAB is not Hermitian. Legal assertions do not make every combination legal.

Weakest preconditions and commutativity

Although wpE(A)=E∗(A)\mathrm{wp}_{\mathcal E}(A)=\mathcal E^*(A), an adjoint completely positive map is generally not multiplicative. Proposition 6.5 distinguishes:

  • Unitaries: [U†AU,U†BU]=U†[A,B]U[U^\dagger AU,U^\dagger BU]=U^\dagger[A,B]U, so commutativity is preserved in both directions.
  • Projective measurement with forgotten outcomes: E∗(A)=∑kPkAPk\mathcal E^*(A)=\sum_kP_kAP_k. The transformed assertions commute exactly when PkAPkP_kAP_k and PkBPkP_kBP_k commute within every block.
  • Rank-one basis measurement: all transformed assertions are diagonal in the same basis, even when their original assertions did not commute.

The preceding example becomes AA and I/2I/2 after computational-basis dephasing. Higher-rank measurement blocks retain room for noncommutativity.

Sufficient conditions for general operations

Section 6.1.2 studies Kraus and system–environment representations. If A,BA,B commute with each other and both commute with every Kraus operator, their weakest preconditions commute (Proposition 6.8). The property of commuting with every Kraus operator is representation-independent (Lemma 6.5): equivalent lists, padded with zeros, are related by unitary linear combinations.

These are sufficient conditions, not necessary conditions for arbitrary operations. Other spectral and environment-compression criteria in the chapter retain their finite-dimensional or operator assumptions. They do not establish universal preservation of simultaneous observability.

Source

Mingsheng Ying, Foundations of Quantum Programming, second edition, §6.1 and §6.1.2, Example 6.1, Proposition 6.5, Lemma 6.5 and Proposition 6.8. Chapter DOI.

An introductory guide. Consult the original references for technical details and formal citations.
READ NEXTA Hoare Proof of Grover Search→

Search the collection