Probabilities and Epistemic Operations in the Logics of Quantum Computation

Quantum computation theory has inspired new forms of quantum logic, called quantum computational logics, where formulas are supposed to denote pieces of quantum information, while logical connectives are interpreted as special examples of quantum logical gates. The most natural semantics for these logics is a form of holistic semantics, where meanings behave in a contextual way. In this framework, the concept of quantum probability can assume different forms. We distinguish an absolute concept of probability, based on the idea of quantum truth, from a relative concept of probability (a form of transition-probability, connected with the notion of fidelity between quantum states). Quantum information has brought about some intriguing epistemic situations. A typical example is represented by teleportation-experiments. In some previous works we have studied a quantum version of the epistemic operations “to know”, “to believe”, “to understand”. In this article, we investigate another epistemic operation (which is informally used in a number of interesting quantum situations): the operation “being probabilistically informed”.


Introduction
Quantum information and quantum computation have inspired new developments of some basic concepts of the quantum theoretic formalism, which for a long time had been regarded as mysterious and potentially paradoxical. In this framework the concept of quantum probability has been investigated according to new perspectives, giving rise to possible applications to fields that are far apart from microphysics (cognitive and social sciences, semantics of natural languages and of the languages of art, see, for instance, [1][2][3]).
As is well known, the basic idea of quantum computation theory is that information can be stored and transmitted by quantum physical objects. Accordingly, pieces of quantum information can be identified with states of some special quantum systems that are storing the information in question. In the simplest case a piece of quantum information corresponds to a pure state of a single particle: a qubit (or qubit-state), the quantum counterpart of the classical concept of bit. Mathematically a qubit can be represented as a quantum superposition (living in the two-dimensional Hilbert space C 2 ), whose form is |ψ = c 0 |0 + c 1 |1 , where |0 and |1 are the two elements of the canonical orthonormal basis of the space, representing in this framework the two classical truth-values 1 (Truth) and 0 (Falsity). From an intuitive point of view, any qubit c 0 |0 + c 1 |1 can be regarded as un uncertain information that might be true with probability |c 1 | 2 and might be false with probability |c 0 | 2 . More generally, a piece of quantum information corresponds to a complex knowledge that can be mathematically represented as a pure or mixed state of a composite quantum system: a density operator ρ of a finite-dimensional Hilbert space whose standard form is n−times (the n − fold tensor product of C 2 ).
Quantum information is processed by (quantum logical) gates: special examples of unitary quantum operations that transform pure and mixed states in a reversible way. Any finite sequence of gates (defined on a space H (n) ) gives rise to a quantum circuit: when applied to a given input ρ in , the circuit under consideration transforms ρ in into an output ρ out . This represents a mathematical description for a physical process that might be performed by a quantum computer.
The theory of quantum circuits has inspired a natural logical abstraction, giving rise to the development of new forms of quantum logic that have been termed quantum computational logics. In these logics, formulas are supposed to denote pieces of quantum information, while logical connectives are interpreted as special examples of gates. Consequently, all formulas of quantum computational languages turn out to have a typical dynamic character, representing possible computation-actions. The most natural semantics for quantum computational logics is a form of holistic semantics, where quantum entanglement (often described as "mysterious") can be used as a powerful logical resource. Against the classical compositionality-principle, meanings of well-formed expressions of a quantum computational language behave in a holistic and contextual way: the meaning of a global expression determines the meanings of its well-formed parts, and not the other way around. Furthermore, meanings are generally context-dependent: under one and the same interpretation of the language an expression may receive different meanings in different contexts (as, in fact, happens in our current use of natural languages and in many forms of informal reasoning).
An important "character" of the quantum computational semantics is the concept of quantum probability, which can assume different forms. A basic notion of quantum probability (which plays an important logical role) is connected with the idea of truth. In any quantum computational space H (n) the concept of truth can be naturally represented as a special projection operator, indicated by P (n) 1 . For instance, in the case of the space H (1) = C 2 the truth-concept P (1) 1 is identified with the projection P |1 that projects over the closed subspace determined by the bit |1 (corresponding to the classical truth-value 1). In this way, truth is dealt with as a special example of a mathematical representative for a possible physical event. Accordingly, one can naturally apply the basic probabilistic rule of quantum theory, based on the concept of Born-probability. For any qubit |ψ = c 0 |0 + c 1 |1 , the probability that the quantum information |ψ satisfies the truth can be defined as follows: where tr is the trace functional and P |1 |ψ is the length of the vector obtained by projecting |ψ over the closed subspace determined by |1 . In the next Section we will see how the probability-function p 1 can be generalized to all pieces of quantum information, living in any space H (n) .
Interestingly enough, the contextual properties of the holistic quantum computational semantics allow us to understand and to justify (at least to a certain extent) some strange uses of the concept of probability that sometimes occur in the framework of intuitive ways of reasoning (for a general discussion of this problem see, for instance, [1]). For instance, assigning to a conjunction α ∧ β a probability-value greater than the probabilities of both members (α, β) is not necessarily "irrational" or "antiscientific". For, it might happen that the meanings of the three sentences α ∧ β, α, β refer, in fact, to different contexts.
Once fixed the truth-concept P (n) 1 (for any space H (n) ), the probability-function p 1 represents a kind of absolute concept of probability: any piece of quantum information has a well-determined probability-value of being true. It is interesting to investigate another concept of probability that represents a form of relative probability. Suppose that the pure state |ψ = ∑ i c i |ϕ i (where every |ϕ i is an element of the canonical orthonormal basis of the space H (n) ) represents the information of an epistemic agent at a given time (say, at the beginning of an experiment or of a computation). According to the quantum theoretic formalism, the information |ψ allows us to assign probability-values to other pieces of information, that may represent possible outcomes of a measurement or of a computation. For instance, the probability that the information |ψ assigns to the outcome |ϕ i is |c i | 2 . Thus, whenever we have the information |ψ we might have the information |ϕ i with probability |c i | 2 . Accordingly, we can write: We will see how this concept of relative probability (which can be generalized to mixed states) is strongly connected with the concept of fidelity between quantum states.
Quantum information has brought about some intriguing epistemic situations. A typical example is represented by teleportation-experiments, where an agent (say, Alice) transmits qubit-states to a far agent (say, Bob), by using some special quantum non-locality phenomena, which may appear prima facie strange and mysterious. These puzzling (non-classical) situations have inspired new ideas in the field of epistemic logics. See, for instance, [4].
As is well known, many standard approaches to epistemic logics have been developed in the framework of a possible world semantics, where the basic epistemic operators ("to know", "to believe") are dealt with as special examples of modal operators. Is it possible to represent epistemic operators as particular examples of quantum operations in the framework of a quantum computational semantics? This question admits a positive answer. In some previous works we have studied a quantum version of the epistemic operators "to know", "to believe", "to understand", whose semantic properties depend on the notion of quantum truth and on the probability-function p 1 . We have seen, in particular, how quantum knowledge generally gives rise to forms of "reversibility-breaking" that can be compared with what happens in the case of quantum measurements. In this article we will investigate another epistemic concept: the operation "being probabilistically informed", which plays a significant role in a number of interesting quantum situations (for instance, in the case of quantum teleportation-experiments).

Pieces of Quantum Information and Quantum Probabilities
We will first recall the basic "mathematical characters" that play an important role in quantum computation. The "mathematical stage" where any piece of quantum information is usually supposed to live is an n-fold tensor product of the Hilbert space C 2 : Any piece of quantum information is a special mathematical object that lives in a particular quantum computational space H (n) , representing a possible state of a physical system that is storing the information in question. For some applications it may be useful to take, as a basic quantum computational space, a many-dimensional space C d (with d > 2). In this way, qubits are generalized to qudits. See, for instance, [5]. Important examples are represented by quregisters, qubits, registers, bits and mixtures of quregisters. In the quantum computation-literature the terms "qubit" (or "quantum bit") and "quregister" (or "quantum register") are sometimes used in an ambiguous way. In many cases the expression "qubit" refers to a quantum system (say, an electron or a photon) whose possible pure states live in the space C 2 . In some other cases, instead, "qubit" simply means a possible pure state of such a system. A similar ambiguity regards the term "quregister". In this article, we will always use the terms "qubit" and "quregister" in the sense of possible pure states of quantum systems that can store pieces of quantum information.

•
A quregister (or quregister-state) is a unit vector of a space H (n) . • A qubit (or qubit-state) is a quregister of the space C 2 .
Any quregister |ψ of the space H (n) can be represented as a quantum superposition of registers that belong to the canonical basis of the space: where c i are complex numbers (called amplitudes) such that ∑ i |c i | 2 = 1.
Quregisters are pure states representing maximal pieces of information (about the quantum systems under investigation) that cannot be consistently extended to a richer knowledge. More generally, a piece of quantum information may correspond to a non-maximal knowledge: a mixed state (or mixture of quregisters), that is mathematically represented as a density operator ρ of a space H (n) . Of course, any quregister |ψ corresponds to a special case of a density operator: the projection P |ψ that projects over the closed subspace determined by |ψ . We will indicate by D(H (n) ) the set of all density operators of the space H (n) , while D = n D(H (n) ) will represent the set of all possible pieces of quantum information.
A piece of quantum information is generally stored by a composite system S consisting of some subsystems S 1 , . . . S r , where each part S i may be, in turn, a composite system. According to the quantum theoretic formalism any possible (pure or mixed) state ρ of S determines the state ρ i of each subsystem S i ; this state is called the reduced state of ρ with respect to the i-th subsystem. Of course, some composite systems S might be decomposed into parts in different ways; thus, the mathematical formalism shall take into account all possible decomposition-choices.
Consider a Hilbert space H (n) that can be decomposed as where m 1 + . . . + m r = n. Accordingly, any density operator ρ of H (n) can be regarded as a possible state of a composite system where H (m i ) is the Hilbert space associated to the subsystem S i . Consider now a particular subsystem of S: S i 1 + . . . + S i k (with 1 ≤ i 1 , . . . , i k ≤ r). We will indicate by the reduced state of ρ with respect to the subsystem S i 1 + . . . + S i k and with respect to the decomposition H (n) = H (m 1 ) ⊗ . . . ⊗ H (m r ) . By simplicity we will omit the subscript [m 1 , . . . , m r ] in the case where the decomposition of H (n) is obvious. The mathematical representation of composite systems (via tensor products) has brought about some deep changes in the relationships between parts and whole in the quantum world. As is well known, in perfect harmony with the semantics of classical logic, classical physical systems satisfy a physical compositionality-principle: the states of the subsystems of a given system S determine the state of S and vice versa (from the parts to the whole and from the whole to the parts). In quantum theory the compositionality-principle is strongly violated: the state of a composite system determines the state of all its parts, but generally not the other way around. The mysterious quantum entanglement (which has for a long time regarded as potentially paradoxical) is connected with the failure of the compositionality-principle.
What exactly is entanglement? For the sake of simplicity, in this article we will only consider the case of entangled pure states.
Definition 2 (Entangled pure state). Consider a composite quantum system and let H S , H S 1 , . . . , H S r be the Hilbert spaces associated to the systems S, S 1 , . . . , S r (respectively). A pure state |ψ of S is called entangled iff |ψ cannot be represented as a factorized state

Example 1.
A typical Bell-state is the following: Apparently, |ψ describes the state of a two-particle system (S = S 1 + S 2 ), assigning probability-value 1 2 to the two following possibilities: • both subsystems are in the state |0 ; • both subsystems are in the state |1 .
One can show that the two reduced states of |ψ (with respect to the first subsystem S 1 and with respect to the second subsystem S 2 ) are one and the same mixed state: Since |ψ is a pure state, while 1 2 I (1) is a proper mixture, we obtain: [1,1] (|ψ ).
Thus, the states of the two parts of S turn out to be indistinguishable and entangled in the context |ψ .
Let us now turn to the concept of quantum probability, a basic "character" of the quantum theoretic formalism that can assume different forms. We will first consider the concept of truth-probability that is naturally connected with the idea of quantum truth. In Section 4 we will see how this concept will play an important role in the semantics of quantum computational logics. As noticed in the Introduction, in any space H (n) the concept of truth can be identified with a special projection operator indicated by P (n) 1 . In this way, truth is dealt with as a mathematical representative of a possible physical event.
In order to define the truth-concept P (n) 1 (of H (n) ), we will first distinguish the true registers from the false registers of the space. Definition 3 (True and false registers). Let |x 1 , . . . , x n be a register of H (n) .
Thus, the truth-value of a register is determined by its last bit. As we will see in the next Section, this choice turns out to be natural and useful in the theory of some important quantum logical gates, where the last bit of an input-register represents the target that is transformed by the gate in question into the final truth-value of the output.
On this basis one can now define the concepts of truth and falsity of a space H (n) .

Definition 4 (Truth and falsity).
• The truth of the space H (n) is the projection P (n) 1 that projects over the closed subspace spanned by the set of all true registers.

•
The falsity of the space H (n) is the projection P (n) 0 that projects over the closed subspace spanned by the set of all false registers.
As a particular case, we obtain that the truth P (1) 1 of the space C 2 is the projection P |1 (which projects over the closed subspace determined by the bit |1 ). Now, we can naturally apply the basic probabilistic rule of quantum theory: the Born-rule, which determines for any state ρ and for any physical event represented by a projection operator P (of a Hilbert space H), the probability that a quantum system in state ρ verifies the event represented by P. According to this rule we have: Prob ρ (P) = tr(ρP) (where Prob ρ (P) represents the probability that the state ρ assigns to the event P ).
By applying the Born-rule to the particular case of the truth-concept P (n) 1 we obtain for any state ρ of H (n) : From an intuitive point of view, Prob ρ (P (n) 1 ) represents the probability that the quantum information ρ is true. Since P (n) 1 is a constant projection operator (in the space H (n) ) we can briefly write p 1 (ρ), instead of Prob ρ (P (n) 1 ). Once chosen the truth-concept P (n) 1 (in any space H (n) ), every piece of quantum information turns out to have a well-determined probability-value of being true. An important property of the function p 1 is asserted by the following Lemma.

Lemma 1.
For any ρ ∈ D(H (n) ), [n−1,1] (ρ)P (1) As observed in the Introduction, it is interesting to consider also a different notion of quantum probability, that represents a kind of relative probability. Let us first refer to the case of quregisters (living in a given space H (n) ) and suppose that |ψ = ∑ i c i |x i 1 , . . . , x i n represents the information that an epistemic agent has at a given time. The quregister |ψ allows us to assign probability-values to all registers |x i 1 , . . . , x i n (which might represent possible outcomes of a measurement or of a computation). For any |x i 1 , . . . , x i n , the probability that |ψ assigns to the outcome |x i 1 , . . . , x i n is |c i | 2 . Apparently, one is dealing with a kind of relative probability: when we have the information |ψ , we might have the information |x i 1 , . . . , x i n with probability |c i | 2 .
In the general case, this idea of relative probability turns out to be strongly connected with the notion of fidelity: a concept (introduced by Uhlmann and by Jozsa), that represents a generalization of the notion of of transition-probability for pure states (see [6,7]).
The following theorem sums up some basic properties of the notion of fidelity.
From an intuitive point of view one can say that the real number F(|ψ , |ϕ ) measures "how close" are the two pure states |ψ and |ϕ in the Hilbert space under consideration.
Since F(|ψ , |ϕ ) = tr(P |ψ P |ϕ ) = tr(P |ϕ P |ψ ), recalling the Born-rule, the number F(|ψ , |ϕ ) can be naturally interpreted as a relative probability: when we have the information |ψ , we might have the information |ϕ with probability F(|ψ , |ϕ ), or vice versa. Accordingly we can write: stressing that F(|ψ , |ϕ ) represents the probability of the information |ϕ under the condition |ψ , or vice versa. In this sense one can say that the notion of fidelity represents a special concept of conditional probability that, unlike the general case, does satisfy the symmetry-property. For a general discussion of conditional probabilities in quantum theory see [8].
The concept of fidelity (which represents a form of transition-probability in the case of pure states) can be generalized to density operators. Definition 6 (Fidelity for density operators). Let ρ and σ be two density operators of H (n) .
Interestingly enough, Jozsa has proved that this notion of fidelity between density operators coincides with the notion of transition-probability between density operators (via purification of mixtures), investigated by Uhlmann (see [7]).
The concept of fidelity for density operators represents a good generalization of the concept of fidelity for pure states, as stated by the following Lemma.
The following Theorem sums up the basic properties of the concept of fidelity for density operators.
Thus, fidelity is preserved by unitary operators. 5.
On this basis, it seems reasonable to assume that the number F(ρ, σ) represents a form of relative probability for quantum states (which may be either pure or mixed). Accordingly, we will write (like in the case of pure states): Is it possible to define fidelity for density operators that belong to different spaces? Suppose that ρ ∈ D(H (n) ), σ ∈ D(H (m) ) and n > m. The intuitive idea is that ρ and σ can be compared in the framework of the smaller space H (m) , by referring to a special reduced state of ρ that represents a part of ρ living in H (m) . The choice of comparing pieces of information that live in different spaces in the framework of the smaller space seems to be quite natural. In fact, both in the case of human and of artificial intelligence it often happens that agents endowed with a richer knowledge communicate with less informed agents by "reducing" their information-level to the level of the "more ignorant" agents. Accordingly, the concept of generalized fidelity can be defined as follows.
We obtain: In this way, for any choice of ρ, the probability-function p ρ turns out to be defined on the set D of all possible pieces of quantum information.
It is interesting to compare the probability functions p 1 and p ρ . As we have seen, once chosen the truth-concept in any space H (n) , the function p 1 represents a kind of absolute concept of probability: every piece of quantum information ρ (living in whatever space) has a well-determined probability-value of being true. The probability-function p ρ represents, instead, a relative concept that depends on the choice of ρ. From an intuitive point of view, ρ can be regarded as an information (available for a given epistemic agent) which describes a situation that is essentially characterized by some uncertain and vague features. On the basis of his/her information our agent is able to valuate probabilistically other possible alternative situations, using the p ρ -function.
Interestingly enough, the truth-probability function p 1 can be represented as a special case of the relative probability p ρ . Theorem 3. For any ρ ∈ D(H (n) ), Proof. Let ρ ∈ D(H (n) ). By definition of p 1 we have: Suppose that n = 1. Then, Suppose that n > 1. Then, by Lemma 1, Both the truth-probability function p 1 and the relative probability-function p ρ determine a preorder relation on the set D of all possible pieces of quantum information.

Quantum Logical Circuits
The basic idea of the theory of quantum computers is that computations can be performed by some quantum objects that evolve in time. Recalling that (according to Schrödinger's equation) the time-evolution of quantum systems is mathematically described by unitary operators, it is natural to assume that quantum information is processed by quantum logical gates (briefly, gates): special examples of unitary operators that transform (in a reversible way) the pure states of the quantum systems that store the information in question. Any gate G (n) (defined on the space H (n) ) can be canonically extended to a unitary operation D G (n) (defined on the set D(H (n) ) of all density operators of H (n) ) according to the rule: . For the sake of simplicity, we will call gate either a unitary operator G (n) or the corresponding unitary operation D G (n) .
We will now recall the definitions of some basic gates that play an important role both from the computational and from the logical point of view. We will first consider some gates, called "semiclassical", that cannot "create" superpositions from register-inputs. Two important examples are represented by the negation-gate and by the Toffoli-gate.
Definition 10 (The negation-gate on the space H (1) ). The negation-gate on H (1) is the linear operator NOT (1) that satisfies the following condition for every element |x of the canonical basis: The operator NOT (1) represents a natural quantum generalization of the classical negation. We have: The negation-gate can be naturally generalized to higher-dimensional spaces. For any H (n) (with n > 1), the operator NOT (n) is defined for every element |x 1 , . . . , x n of the canonical basis as follows: Thus, the Toffoli-gate leaves unchanged the first two bits |x and |y (which represent the control-bits); while the third bit |z (representing the target-bit) is transformed into • the bit corresponding to the Boolean conjunction of the two control-bits, when z = 0; • the bit corresponding to the Boolean negation of the conjunction of the two control-bits, when z = 1.
The Toffoli-gate has a special logical interest, since it allows us to define a quantum logical conjunction that behaves as a reversible operation. For any choice of two natural numbers m, n (such that m, n ≥ 1) the reversible conjunction AND (m,n) is dealt with as a holistic monadic operator that acts on global pieces of quantum information represented by quregisters of the space H (m+n) . Accordingly, any quregister of H (m+n) can be regarded as a holistic description of two possible members of the conjunction AND (m,n) , which live in the space H (m) and H (n) , respectively. In the particular case of mixed states ρ ∈ D(H (m+n) ) we will write: D AND (m,n) (ρ) for D T (m,n,1) (ρ ⊗ P (1) where D T (m,n,1) is the unitary quantum operation that corresponds to the unitary operator T (m,n,1) .
Thus, AND (1,1) represents a "good" quantum generalization of classical conjunction. At the same time, this particular form of quantum conjunction gives rise to a characteristic holistic behavior, which is deeply rooted in the holistic features of the quantum formalism (as shown by the following example).

Example 2.
Consider the quregister represented by the following (entangled) Bell-state: We have: Hence, AND (1,1) |ψ and D AND (1,1) (P |ψ ) represent a pure state of the space H (3) . At the same time, the two reduced states of P |ψ turn out to be one and the same proper mixture (of the space H (1) ): Consequently, the conjunction over the global state P |ψ cannot be represented as the conjunction of the states of the two separate parts: AND (1,1) (P |ψ ) = AND (1,1) (Red (1) (P |ψ ) ⊗ Red (2) (P |ψ )).
This gives rise to a clear violation of the compositionality-principle.
As semiclassical gates, the negation-gate and the Toffoli-gate are unable to "create" superpositions from register-inputs. Of course, quantum computer theory cannot help using also "genuine quantum gates" that can transform classical inputs (registers) into genuine superpositions (which are responsible for the characteristic parallel structures of quantum computations). An important example is represented by theHadamard-gate.
Definition 13 (The Hadamard-gate on the space H (1) ). The Hadamard-gate on H (1) is the linear operator √ I (1) that satisfies the following conditions: Thus, the Hadamard-gate transforms both bits into two distinct genuine superpositions that might be either true or false with probability 1 2 . Like the negation and the Toffoli-gate, the Hadamard-gate also can be generalized to higher-dimensional spaces. For any H (n) (with n > 1), the operator √ I Quantum computations are performed by quantum circuits. Mathematically any quantum circuit can be described as a finite sequence of gates, all defined on one and the same quantum computational space H (n) . Since gates may be either unitary operators or unitary quantum operations, we will write: Example 3. An interesting example is represented by the following quantum circuit (also called "Mach-Zehnder circuit"): As is well known, this circuit can be implemented by a Mach-Zehnder interferometer (Figure 1), where the Hadamard-gate is physically realized by a beam-splitter (BS), while the negation-gate is realized by a pair of mirrors (M). It is worth while recalling how the properties of the Mach-Zehnder circuit and of the Mach-Zehnder interferometers have been an important object of discussion in many foundational debates about quantum theory. The main intuitive "strangeness" is represented by the following mathematical result (which is confirmed by the experimental evidence) : (where the bit |0 is supposed to describe a photon-beam moving along the x-direction, while the bit |1 describes a photon-beam moving along the y-direction). Such result seems to contradict any classical physical expectation, according to which a beam that has entered into the interferometer along the x-direction, after having crossed the second beam-splitter should be detected with probability-value 1 2 either along the x-direction or along the y-direction.

A Logical Abstraction: Quantum Computational Logics
The theory of quantum circuits has inspired a natural logical abstraction, suggesting the development of new forms of quantum logic, that have been called quantum computational logics.
As is well known, the prototypical example of quantum logic is the logic created by Birkhoff and von Neumann in their celebrated article "The logic of quantum mechanics", and usually called Birkhoff and von Neumann's quantum logic (see [9]). The basic aim of the original quantum logical approach to quantum theory was the development of an abstract analysis of the relationships between the states of a quantum system S and the quantum events that may occur to S, which can be mathematically represented as projections P of the Hilbert space H S associated to S. In the semantics of Birkhoff and von Neumann's quantum logic, the formulas of the quantum logical language are supposed to denote quantum events: projections P (of a given space H S ) to which every state of S assigns a well-determined probability-value. At the same time, the basic logical connectives (negation, conjunction, disjunction) are interpreted as special (generally irreversible) algebraic operations that can be defined on the set of all projections P of H S .
In the logical community, Birkhoff and von Neumann's quantum logic has been often regarded as a very peculiar and somewhat strange form of non-classical logic, for which some important metalogical questions (like axiomatizability) are still open problems. An axiomatizable version of quantum logic can be obtained by means of a convenient weakening of Birkhoff and von Neumann's quantum logic. This logic (often called abstract quantum logic) can be semantically characterized by referring to the class of all orthomodular lattices (which contains, as special cases, the orthomodular lattices based on the set of all projections of a Hilbert space, see, for instance, [10]).
The semantics of quantum computational logics has been inspired by quite different intuitive ideas, which can be briefly sketched as follows: • any formula α of a quantum computational language is supposed to denote a piece of quantum information ρ, living in a Hilbert space whose dimension depends on the linguistic complexity of α; • logical connectives are interpreted as particular gates (for a more detailed exposition see [11][12][13]).
Consequently, unlike the case of traditional quantum logics, the formulas of quantum computational logics turn out to have a characteristic dynamic feature, representing possible computation-actions.
In this article we will refer to a minimal (quantum computational) sentential language L, whose alphabet contains: 1.
atomic formulas, including two special formulas t and f that denote the truth and the falsity, respectively; 2.
the following logical connectives: • the negation ¬, corresponding to the gate negation; • the Toffoli-connective , corresponding to the Toffoli-gate; • the Hadamard-connective √ id, corresponding to the Hadamard-gate.
These connectives simulate, at a syntactical level, the behavior of the corresponding gates. While the negation and the Hadamard-connective are 1-ary connectives (which act on single formulas), the Toffoli-connective is a ternary connective: if α, β are formulas and q is an atomic formula, then (α, β, q) is a formula. On this basis, recalling the definition of the quantum computational conjunction AND (m,n) , a binary conjunction-connective ∧ can be defined in terms of the Toffoli-connective: where the false formula f plays the role of a syntactical ancilla).
We obtain, in this way, an appropriate logical language for the description of a class of quantum circuits. For instance, the Mach-Zehnder circuit: can be naturally described by the following "Mach-Zehnder formula": A syntactical notion that plays an important semantic role is the concept of atomic complexity of a formula. As we will see, this concept provides a link between the language and the Hilbert-space environment, where the meanings quantum computational formulas are supposed to live. Definition 14 (Atomic complexity). The atomic complexity At(α) of a formula α is the number of occurrences of atomic formulas in α.
For any formula α consider the space H (At(α)) (which is determined by the atomic complexity of α). This space is called the semantic space of α, where any piece of quantum information representing a possible meaning of α shall live. We will briefly write: H α , instead of H (At(α)) .
Any formula α can be decomposed into its parts, giving rise to a syntactical configuration called the syntactical tree of α. Let us first consider a particular example.

Example 5. Consider again the formula
The syntactical tree of α is the following sequence of levels, where each level is a particular sequence of subformulas of α: In the general case, the levels of the syntactical tree of a given formula α are determined in the following way: • the bottom level Level α 1 is (α); • the top level Level α h is the sequence of atomic formulas occurring in α; • Level i+1 (where 1 ≤ i < h) is obtained by dropping the principal connective in all molecular formulas occurring at Level i and by repeating all atomic formulas that occur at Level i .
The syntactical tree of any formula α uniquely determines a quantum circuit: a sequence of gates all defined on the semantic space of α. Such sequence is called the gate tree of α. For instance, the gate tree of the formula α = (q, ¬q, f) is the following circuit: T (1,1,1) ). In fact, the second level of the syntactical tree of α has been obtained from the third level by repeating the first occurrence of q, by negating the second occurrence of q and by repeating f. The first level has been obtained from the second level by applying the Toffoli-connective to the three sentences occurring at the second level.
While the atomic complexity of α corresponds to the width (i.e., the number of wires) of the circuit described by α, the number of levels of the syntactical tree of α (called the height of α) corresponds to the depth (i.e., the number of computational steps) of the circuit in question.
We will now briefly sum up the basic concepts of the holistic quantum computational semantics. The notion of holistic model of the language L is based on the weaker notion of holistic map: a map Hol that assigns to each level of the syntactical tree of any formula α a global meaning, represented by a density operator living in the semantic space of α. We have: On this basis, the meaning that Hol assigns to α is identified with the meaning that Hol assigns to the bottom level of the syntactical tree of α: Given a formula α, any holistic map Hol determines the contextual meaning with respect to the context Hol(α) of any occurrence of a subformula β in α. Suppose that The contextual meaning of β i j with respect to the context Hol(α) can be naturally defined using the notion of reduced state: Hol α (β i j ) := Red (j) (Hol(Level i (α))).

Remark 1.
Notice how our definition of contextual meaning of a quantum computational formula brings about an interesting connection between the notion of contextuality in linguistic frameworks and the concept of physical contextuality, that plays an important role in many quantum-theoretic problems. As an example, we might recall the debates about the foundational consequences of Kochen and Specker's theorems and about the logical possibility of deterministic completions of quantum theory via a non-contextual hidden-variable theory.
The concept of holistic model of the language L can be now defined as a holistic map that satisfies some natural logical restrictions.
Definition 15 (Holistic model). A holistic model of the language L is a holistic map Hol that satisfies the following conditions:

1.
Hol preserves the logical form of all formulas. Thus, the meaning of each Level α i (different from the top level) of the syntactical tree of α is obtained by applying the corresponding gate G α i (of the gate tree of α) to the meaning of Level α i+1 : Hol assigns the same contextual meaning to different occurrences (in the syntactical tree of α) of one and the same subformula of α.

3.
The contextual meanings assigned by Hol to the true formula t and to the false formula f are: P (1) 1 (the truth) and P (1) 0 (the falsity), respectively.
Suppose that the meaning assigned by a model Hol to a formula α is a pure state, whose form is: From an intuitive point of view Hol(α) can be regarded as a vague, ambiguous idea that alludes to other ideas (represented by the pieces of information |ψ 1 , . . . , |ψ n ) that are, in a sense, all co-existent. Notice that any meaning Hol(α) represents a kind of autonomous semantic context that is not necessarily correlated with the meanings of other formulas. Generally we have: Hol α (γ) = Hol β (γ).
Hence, one and the same formula may receive different contextual meanings in different contexts. As, in fact, happens in the case of our normal use of natural languages.
The following Lemma (which might appear prima facie obvious) asserts a highly non-trivial property that plays an important role in the development of the holistic quantum computational semantics (for a proof of Lemma 2 see [13]). Lemma 3. Consider a formula γ and let η be a subformula of γ. For any model Hol and for any formula β there exists a model * Hol such that: Thus, conjunctions are generally non-idempotent, non-commutative and non-associative. Such violations can be explained by recalling the contextual behavior of quantum meanings. It may happen that: All this seems to be strongly in agreement with a number of informal ways of reasoning where conjunctions are frequently used as non-idempotent, non-commutative and non-associative logical operations. As is well known, the semantics of natural languages is essentially holistic and contextual. We need only think how children learn their mother-language, showing an extraordinary capacity of understanding and using correctly the contextual meanings of expressions that occur in different contexts. And it often happens that the meaning of a global expression is grasped and used in a clear and correct way, while the meanings of its parts appear more vague and ambiguous.
Different forms of holistic quantum computational logics (also in a first-order version) can be applied to investigate semantic phenomena where holism, contextuality and ambiguity play an important role, as happens not only in the case of natural languages but also in the languages of art (say, poetry or music, for instance, see [2]). Of course the holistic quantum computational semantics does not forbid compositional semantic situations, which can be described as special cases of the holistic semantics. Interestingly enough, conjunctions are always commutative and associative, but generally non-idempotent in the framework of the compositional fragment of the holistic quantum semantics.

Quantum Epistemic Operations and Quantum Probabilities
Quantum information has brought about some intriguing epistemic situations, that have inspired new ideas in the field of epistemic logics. Is it possible to represent epistemic operators as special examples of operations in a Hilbert space environment? This question admits a positive answer.
A characteristic feature of the quantum computational approach to epistemic logic is the use of the notion of truth-perspective: each epistemic agent (say, Alice, Bob, ...) is supposed to be associated to a particular truth-perspective that represents his/her idea of truth. Truth-perspective changes may give rise to some interesting relativistic-like epistemic effects: if Alice and Bob have different truth-perspectives, Alice might see a kind of deformation in Bob's logical behavior (see [14]).
From the mathematical point of view we assume that the choice of a given truth-perspective is determined by the choice of a particular orthonormal basis of the Hilbert space C 2 . In Section 2 we have seen how the truth-concept P (n) 1 (of H (n) ) has been defined by referring to the canonical basis of the space. But, of course, the choice of a particular basis of a given Hilbert space is a matter of convention. Consider the space C 2 . Any orthonormal basis of this space can be described as determined by the application of a unitary operator T to the elements of the canonical basis {|0 , |1 }. We can think that the operator T gives rise to a change of truth-perspective. While the classical truth-values Truth and Falsity have been identified with the two bits |1 and |0 , assuming a different basis corresponds to a different idea of Truth and Falsity. Since any basis-change in C 2 is determined by the choice of a particular unitary operator, we can identify a truth-perspective with a unitary operator T of C 2 . We will write: |1 T = T|1 ; |0 T = T|0 , and we will assume that |1 T and |0 T represent, respectively, the truth-values Truth and Falsity of the truth-perspective T. The canonical truth-perspective is, of course, determined by the identity operator I (1) . We will indicate by B (1) T the orthonormal basis determined by T; while B (1) I will represent the canonical basis. From a physical point of view, we can suppose that each truth-perspective is associated to an apparatus that allows one to measure a given observable.
Any unitary operator T of H (1) (representing a truth-perspective) can be naturally extended to a unitary operator T (n) of H (n) (for any n > 1): The intuitive interpretation of I (n) T ρ is the following: a given epistemic agent, with truth-perspective T, is probabilistically informed about ρ (in the framework of the space H (n) ). As happens in the case of the knowledge-operation K (n) T , the operation I (n) T is associated to an information-domain In f D(I (n) T ) ⊆ D(H (n) ), which represents the set of pieces of information that the agent under consideration is able to valuate probabilistically in the domain D (H (n) ). Unlike the case of knowledge-operations (which shall satisfy the strong condition (2) of Definition 20) we admit the following possibility (which occurs, for instance, in the case of the teleportation-example): Definition 21 (Probabilistic information). A probabilistic information-operation of a Hilbert space H (n) (with respect to the truth-perspective T) is a map The following conditions are required: T is associated with an information-domain In f D(I

(n)
T ) that is a subset of D(H (n) ); (2) ρ ∈ In f (I (n) It is worth while noticing that the domains EpD(K T . Hence, the phenomenon of "epistemic self-consciousness" is here avoided: Alice might know something (or might be probabilistically informed about something) without knowing of knowing it (without being informed of being informed about it).
Every epistemic agent can be naturally associated to an epistemic situation, which is characterized by the choice of a truth-perspective, of a knowledge-operation and of a probabilistic information-operation (in any space H (n) ).
Definition 22 (Epistemic situation of an agent). Let i represent an epistemic agent. An epistemic situation for i is a system where: (1) T i represents the truth-perspective of i.
EpD i is a map that assigns to any n ≥ 1 a set EpD (n) i ⊆ D(H (n) ) that represents the information accessible to i in the information-environment D(H (n) ). (3) In f D i is a map that assigns to any n ≥ 1 a set In f D (n) i ⊆ EpD (n) i that represents the information that i is able to valuate probabilistically in the information-environment D(H (n) ). (4) K i is a map that assigns to any n ≥ 1 a knowledge-operation K (n) T i (defined on H (n) ), which describes the knowledge of i with respect to the information-environment D(H (n) ). The epistemic domain associated to the operation K  I i is a map that assigns to any n ≥ 1 an information-operation I (n) T i (defined on H (n) ), which describes the probabilistic information of i with respect to the information-environment D(H (n) ). The information-domain associated to the operation I T i ρ). The probability of knowing a given information is less than or equal to the probability of having a probabilistic valuation about it. But, generally, not the other way around.
On this basis one can develop a quantum epistemic semantics for a first-order language that can be express formulas like: • Kaα (a knows α); • Iaα (a is probabilistically informed about α).
This semantics allows us to represent and to justify a number of significant features of our normal use of epistemic notions in the framework of natural language. Interestingly enough, the unpleasant phenomenon of logical omniscience is here avoided. Due to the limits of epistemic domains, Alice might know a given sentence without knowing all its logical consequences. Furthermore, knowledge and probabilistic information are not generally closed under logical conjunction, in accordance with what happens in the case of concrete memories both of human and of artificial intelligence (see [14]).
In conclusion, we have seen how the holistic quantum computational semantics provides some useful abstract tools that can be naturally applied to a formal analysis of concepts and problems in fields that may be far apart from microphysics. Some interesting examples concern the use of crucial epistemic concepts (like knowledge, information, belief, understanding) both in the case of rigorous scientific arguments and in some informal ways of reasoning. Other examples regard the role of ambiguity, vagueness, uncertainty and contextuality either in scientific theories or in our normal use of natural languages or in the languages of art (say, poetry or music).
According to some traditional philosophical views, ambiguity and holism represent characteristic features of human thought that cannot be adequately analyzed in the framework of scientific theories, whose semantics is supposed to be essentially "sharp" and "analytical". Interestingly enough, quantum logics (in their different versions) have provided a significant bridge that might fill a gap between humanistic and scientific disciplines.

Conflicts of Interest:
The authors declare no conflict of interest.