Problem or motivation
Thanks for developing this nice simulator.
I would like to propose strong simulation as a useful feature. Currently I use Quizx or TSim for this task, but since Clifft seems to be faster than those (at least at sampling), it would be great if this feature was available too.
The task is to query the exact probability of a specified measurement outcome $x$, i.e. $p(x)=|\langle x|\psi\rangle|^2$. This would make Clifft useful not only as a weak simulator, but also for tasks such as validating individual output probabilities.
Proposed solution
This could be exposed with an interface like clifft.amplitude(program, bitstring) or clifft.probability(program, bitstring).
A possible route is to propagate the computational-basis effect $\langle x|$ backward through the Clifford frame and projector/Pauli structure, reducing the query to an overlap with only the active state $|\phi\rangle_A$.
Alternatives considered
In tsim this would be via probability_of.
Problem or motivation
Thanks for developing this nice simulator.
I would like to propose strong simulation as a useful feature. Currently I use Quizx or TSim for this task, but since Clifft seems to be faster than those (at least at sampling), it would be great if this feature was available too.
The task is to query the exact probability of a specified measurement outcome$x$ , i.e. $p(x)=|\langle x|\psi\rangle|^2$ . This would make Clifft useful not only as a weak simulator, but also for tasks such as validating individual output probabilities.
Proposed solution
This could be exposed with an interface like
clifft.amplitude(program, bitstring)orclifft.probability(program, bitstring).A possible route is to propagate the computational-basis effect$\langle x|$ backward through the Clifford frame and projector/Pauli structure, reducing the query to an overlap with only the active state $|\phi\rangle_A$ .
Alternatives considered
In tsim this would be via probability_of.