Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evolved operator functions #13361

Merged
merged 34 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3a15589
py version for expand
Cryoris Oct 3, 2024
cea830b
Merge branch 'main' into paulievo
Cryoris Oct 7, 2024
72f2689
expand fully & simplify lie trotter
Cryoris Oct 7, 2024
8cd2c25
use examples that actually do not commute
Cryoris Oct 8, 2024
681105d
add plugin structure
Cryoris Oct 8, 2024
58e4a03
fix plugin name, rm complex from expand
Cryoris Oct 11, 2024
7f2ec3d
paulievo in Rust
Cryoris Oct 11, 2024
f9b72cf
take care of global phase
Cryoris Oct 11, 2024
3985394
support barriers
Cryoris Oct 11, 2024
99a1153
fix time parameter
Cryoris Oct 11, 2024
214b969
fix lint
Cryoris Oct 14, 2024
d96cebf
Merge branch 'paulievo' into rust/paulievo
Cryoris Oct 14, 2024
e8bcc4f
fix final barrier
Cryoris Oct 14, 2024
aba92e2
fix wrapping
Cryoris Oct 15, 2024
4fcf639
add reno and HLS docs
Cryoris Oct 15, 2024
b53b332
Merge branch 'main' into paulievo
Cryoris Oct 15, 2024
5c95b0d
fix unreachable
Cryoris Oct 15, 2024
2eb66f1
fix QPY test & pauli feature map
Cryoris Oct 15, 2024
87496d2
use SX as basis tranfo
Cryoris Oct 15, 2024
4a81172
Merge branch 'main' into paulievo
Cryoris Oct 21, 2024
84ece72
QAOA/EvolvedOp functions
Cryoris Oct 23, 2024
fc43572
add docs
Cryoris Oct 23, 2024
546cc5f
slight performance tweak
Cryoris Oct 23, 2024
551cd8e
Merge branch 'paulievo' of github.com:Cryoris/qiskit-terra into paulievo
Cryoris Oct 23, 2024
f64c8e1
Merge branch 'paulievo' into clib/qaoa
Cryoris Oct 23, 2024
d0cfd50
add reno
Cryoris Oct 23, 2024
05317ff
lint
Cryoris Oct 25, 2024
d8417d9
Merge branch 'main' into clib/qaoa
Cryoris Nov 5, 2024
6bf40b8
fix merge artifacts & typos
Cryoris Nov 5, 2024
e08f71b
docssssssssss
Cryoris Nov 5, 2024
3e009a5
review comments
Cryoris Nov 5, 2024
076f467
review comments
Cryoris Nov 7, 2024
3c71f55
Merge branch 'main' into clib/qaoa
Cryoris Nov 7, 2024
9abd7ea
remove broken docs
Cryoris Nov 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 34 additions & 12 deletions qiskit/circuit/library/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@
:toctree: ../stubs/
:template: autosummary/class_no_inherited_members.rst

ModularAdderGate
HalfAdderGate
FullAdderGate
DraperQFTAdder
CDKMRippleCarryAdder
VBERippleCarryAdder
Expand All @@ -288,6 +291,7 @@
:toctree: ../stubs/
:template: autosummary/class_no_inherited_members.rst

MultiplierGate
HRSCumulativeMultiplier
RGQFTMultiplier

Expand Down Expand Up @@ -332,33 +336,26 @@
HiddenLinearFunction
hidden_linear_function
IQP
iqp
random_iqp
QuantumVolume
quantum_volume
PhaseEstimation
phase_estimation
GroverOperator
grover_operator
PhaseOracle
PauliEvolutionGate
HamiltonianGate
UnitaryOverlap
unitary_overlap

.. autofunction:: iqp
.. autofunction:: random_iqp
.. autofunction:: fourier_checking
.. autofunction:: hidden_linear_function
.. autofunction:: unitary_overlap
.. autofunction:: phase_estimation

.. autofunction:: grover_operator


N-local circuits
================

These :class:`~qiskit.circuit.library.BlueprintCircuit` subclasses are used
as parameterized models (a.k.a. ansatzes or variational forms) in variational algorithms.
They are heavily used in near-term algorithms in e.g. Chemistry, Physics or Optimization.
The following functions return a parameterized :class:`.QuantumCircuit` to use as ansatz in
a broad set of variational quantum algorithms:

.. autosummary::
:toctree: ../stubs/
Expand All @@ -369,6 +366,17 @@
real_amplitudes
pauli_two_design
excitation_preserving
hamiltonian_variational_ansatz
evolved_operator_ansatz

These :class:`~qiskit.circuit.library.BlueprintCircuit` subclasses are used
as parameterized models (a.k.a. ansatzes or variational forms) in variational algorithms.
They are heavily used in near-term algorithms in e.g. Chemistry, Physics or Optimization.

.. autosummary::
:toctree: ../stubs/
:template: autosummary/class_no_inherited_members.rst

NLocal
TwoLocal
PauliTwoDesign
Expand All @@ -382,6 +390,17 @@
Data encoding circuits
======================

The following functions return a parameterized :class:`.QuantumCircuit` to use as data
encoding circuits in a series of variational quantum algorithms:

.. autosummary::
:toctree: ../stubs/
:template: autosummary/class_no_inherited_members.rst

pauli_feature_map
z_feature_map
zz_feature_map

These :class:`~qiskit.circuit.library.BlueprintCircuit` encode classical
data in quantum states and are used as feature maps for classification.

Expand Down Expand Up @@ -596,9 +615,12 @@
RealAmplitudes,
efficient_su2,
EfficientSU2,
hamiltonian_variational_ansatz,
evolved_operator_ansatz,
EvolvedOperatorAnsatz,
excitation_preserving,
ExcitationPreserving,
qaoa_ansatz,
QAOAAnsatz,
)
from .data_preparation import (
Expand Down
11 changes: 9 additions & 2 deletions qiskit/circuit/library/n_local/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@
from .pauli_two_design import PauliTwoDesign, pauli_two_design
from .real_amplitudes import RealAmplitudes, real_amplitudes
from .efficient_su2 import EfficientSU2, efficient_su2
from .evolved_operator_ansatz import EvolvedOperatorAnsatz
from .evolved_operator_ansatz import (
EvolvedOperatorAnsatz,
evolved_operator_ansatz,
hamiltonian_variational_ansatz,
)
from .excitation_preserving import ExcitationPreserving, excitation_preserving
from .qaoa_ansatz import QAOAAnsatz
from .qaoa_ansatz import QAOAAnsatz, qaoa_ansatz

__all__ = [
"n_local",
Expand All @@ -31,8 +35,11 @@
"PauliTwoDesign",
"efficient_su2",
"EfficientSU2",
"hamiltonian_variational_ansatz",
"evolved_operator_ansatz",
"EvolvedOperatorAnsatz",
"excitation_preserving",
"ExcitationPreserving",
"qaoa_ansatz",
"QAOAAnsatz",
]
Loading
Loading