Skip to content

Do product states at the QuantumStateRepresentation level #5389

@daxfohl

Description

@daxfohl

The functionality for simulating as a product state is currently contained in SimulationProductState, which contains a mapping from qubit to SimulationState. SimulationState contains both quantum and classical data. It's a bit hacky because when combining or factoring states, it has to ensure classical data is consistent between all the factors. Not a huge problem, but it would just make more sense to move the functionality to the quantum layer, where classical data does not even come into play. Thus there should be a QuantumProductStateRepresentation that does basically what SimulationProductState does now. Then we can migrate our product state code to use that instead, and deprecate SimulationProductState.

Should be fine for post-1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions