Skip to content

strong simulation / bitstring probability #51

@ajavadia

Description

@ajavadia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions