Skip to content

Commit

Permalink
Improvements to documentation for phase polynomials.
Browse files Browse the repository at this point in the history
  • Loading branch information
renezander90 committed Jun 13, 2024
1 parent 274918a commit ae80942
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The application of general diagonal Hamiltonian functions can be achieved in the

- The :ref:`first method <DiagonalHamiltonianApplication>` consists of computing the Hamiltonian on all outcome labels of the input QuantumVariables, and subsequently applying the classically computed phases using logic synthesis. While this facilitates a convenient application of arbitray diagonal Hamiltonian functions, it does not scale to large systems as all phases have to be computed classically.

- The second method is based on evaluating the Hamiltonian on its input QuantumVariables in superposition into an auxiliary variable of type QuantumFloat, subsequently applying the phases on the auxiliary variable, and finally uncomputing the auxiliary variable. This approch requires additional qubits and performing arithmetic on the quantum computer. Therefore, on the one hand it introduces an additional burden on simulators, and on the other hand is not suitable for NISQ devices.
- The second method is based on evaluating the Hamiltonian on its input QuantumVariables in superposition into an auxiliary variable of type QuantumFloat, subsequently applying the phases on the auxiliary variable, and finally uncomputing the auxiliary variable. This approch requires additional qubits and performing arithmetic on the quantum computer. Therefore, it introduces an additional burden on simulators, and moreover it is not suitable for NISQ devices.

In the special case where the Hamiltonian function is given by a polynomial, its application can be achieved by employing (multi-) controlled phase gates accordingly.
The following functions facilitate convenient application of such diagonal Hamiltonians that are given by polynomials.
Expand Down

0 comments on commit ae80942

Please sign in to comment.