  Magic, also known as nonstabilizerness, quantifies the distance of a quantum
state to the set of stabilizer states, and it serves as a necessary resource
for potential quantum advantage over classical computing. In this work, we
study magic in a measurement-only quantum circuit with competing types of
Clifford and non-Clifford measurements, where magic is injected through the
non-Clifford measurements. This circuit can be mapped to a classical model that
can be simulated efficiently, and the magic can be characterized using any
magic measure that is additive for tensor product of single-qubit states.
Leveraging this observation, we study the magic transition in this circuit in
both one- and two-dimensional lattices using large-scale numerical simulations.
Our results demonstrate the presence of a magic transition between two
different phases with extensive magic scaling, separated by a critical point in
which the mutual magic exhibits scaling behavior analogous to entanglement. We
further show that these two distinct phases can be distinguished by the
topological magic. In a different regime, with a vanishing rate of non-Clifford
measurements, we find that the magic saturates in both phases. Our work sheds
light on the behavior of magic and its linear combinations in quantum circuits,
employing genuine magic measures.
