2 Methodology
Let ρi be the density matrix of the encoded data i of the dataset. Following [11], we take the hyperparameter
t that controls post-selection by inserting the normalization

into the loss. To ensure numerical stability of the logarithms in the cross entropy loss, during numerical
experiments we add a depolarizing channel [19, 2]

However, λ = 0 simplifies theory development. Thus, the adapted crossed entropy loss Lt [8, 14] for a post-
selected QML model reads

with a completely positive (but not trace-preserving) map Λ. Partial post-selection which is not trace-preserving
is implemented as follows: Arbitrary diagonal matrices 0 ≤ D ≤ I, D ̸ = 0 are realized by controlling the rotation
angle to ancillas that are fully post-selected [11]. Generally, the first diagonal element may be chosen 1. This
procedure is equivalent to placing diagonal matrices on the partially post-selected location. For t = 1 no
post-selection occurs, while for t = 0 no limits are placed on post-selection. While there are other choices for
controlling the amount of normalization and thus post-selection, t is the most practical with its interpretation
as a threshold, see Eq. (1).
Based on our simulation data we observed a trend, which we would like to investigate further. For the lack
of more informal means, we define the hypothesis:
Hypothesis 1. While partially post-selecting is permitted, qudits are either not post-selected at all or post-
selected fully, except one state that is limited with the amount of permitted post-selection given by t.
As a metric to investigate the hypothesis we identify all diagonal matrices Dj with their diagonal elements
djk in the model that allow for partial post-selection and taking the number of djk ∈ [0, 1] that are some distance
ε from either 0 or 1. To this end, we take the counting function

Thus, we obtain the full score s to test Hyp.1 on a trained model

Hyp. 1 is confirmed for scores s ≥ 1.
When considering diagonal matrices acting on only a subset or individual qubits the diagonal matrices
aggregate to an action on the entire Hilbert space via the tensor product. For instance, the partial post-
selection of one qubit splits the entire Hilbert space in two subspaces that each get multiplied with respective
factors. In this work we focus on the entries of the individual diagonal matrices and not their aggregated action
because those may also be separated by layers of unitary operations or generally other quantum channels.
Multi-qubit diagonal matrices allow for a higher precision, i.e. allow the selection of smaller subspaces.