A box represents any process with systems as input and output.
A (monoidal) signature
Given two signatures
a morphism
where
Given a signature
Diagrams are subject to three axioms.
Quantum gate sets are signatures!
Formal grammars are signatures!
Chomsky: Syntactic Structures (1957)
A (strict monoidal) category
such that associativity, unitality and naturality hold.
A (strict monoidal) functor
Theorem (Joyal & Street, 1988):
Intuition: The functors
Natural language semantics as a functor
DisCoCat models are functors
The principles of quantum theory as properties of the category
We define a QNLP model as a monoidal functor
We define a QNLP model as a parameterised monoidal functor:
Given a dataset
We call this approach functorial learning, a new category-theoretic approach to structured machine learning.
Practical distributed quantum information processing with LOCCNet, Zhao et al. (2021)
So far, our framework only defines discriminative models
In order to solve more general tasks (e.g. translation, summarisation) we would need generative models
Learning a Deep Generative Model like a Program: the Free Category Prior, Sennesh (2020)
Learning QNLP models requires two steps
A semi-agnostic ansatz with variable structure for quantum machine learning, Bilkis et al. (2021)
joint work with Richie Yeung and Giovanni de Felice
s, n = Ty('s'), Ty('n')
Alice, loves, Bob = Word('Alice', n), Word('loves', n.r @ s @ n.l), Word('Bob', n)
sentence = Alice @ loves @ Bob >> Cup(n, n.r) @ Id(s) @ Cup(n.l, n)
F = Functor(
ob={s: Ty(), n: qubit},
ar={Alice: Ket(0), loves: sqrt(2) @ Ket(0, 0) >> H @ X >> CX, Bob: Ket(1)},
cod=Category(circuit.Ty, Circuit))
assert F(sentence).eval()