Description
Currently, the DD package provides methods for directly constructing the decision diagrams for
- computational basis states
- any product state that can be constructed from the single-qubit states
|0>, |1>, |+>, |->, |L>, |R>
It would be convenient to have some further state preparations available that can be used, e.g., in DDSIM.
Examples:
- GHZ state
- W state
- ... some other important states ...
It should be possible to directly construct the DDs for these states without starting from the all-zero state and applying some operations.
A suggestion would be to name these functions make<SOME-IDENTIFIER>State
.
In the interest of providing a little more structure in the DD package, these functions should probably be designed in a way that they can be put into a separate header file and, ideally, not rely on any template stuff, so that the implementation can be moved to a source file.
If this is accomplished, the existing functions for state preparation should be moved as well.