Skip to content

Amplitude-agnostic unit tests #304

Description

@WrathfulSpatula

ProjectQ would be made even better by keeping its public interfaces agnostic to complex-valued physically nonobservable probability amplitudes. The compiler already can be used this way, as is demonstrated by its compatibility with the genuine quantum hardware of the IBM back end. However, reimplementing the unit tests in a probability amplitude agnostic form would be a huge step toward total interchangeability of genuine quantum hardware and simulators, within an open source quantum compiler.

Virtually the full set of unit tests could be immediately applied to genuine quantum hardware. It would encourage "hygiene" in quantum interface and quantum program design in an open source community that has to rely on simulators to prepare for better genuine quantum hardware.

If you approve, I would like to contribute a PR for this. Do you have any comments, design suggestions, ideas, or approaches you would like me to follow?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions