mirror of https://github.com/Qiskit/qiskit.git
17 lines
782 B
YAML
17 lines
782 B
YAML
---
|
|
features_circuits:
|
|
- |
|
|
Added circuit library functions :func:`.pauli_feature_map`, :func:`.z_feature_map`,
|
|
:func:`.zz_feature_map` to construct Pauli feature map circuits. These functions
|
|
are approximately 8x faster than the current circuit library objects,
|
|
:class:`.PauliFeatureMap`, :class:`.ZFeatureMap`, and :class:`.ZZFeatureMap`,
|
|
and will replace them in the future. Note, that the new functions return a plain
|
|
:class:`.QuantumCircuit` instead of a :class:`.BlueprintCircuit`.
|
|
|
|
The functions can be used as drop-in replacement::
|
|
|
|
from qiskit.circuit.library import pauli_feature_map, PauliFeatureMap
|
|
|
|
fm = pauli_feature_map(20, paulis=["z", "xx", "yyy"])
|
|
also_fm = PauliFeatureMap(20, paulis=["z", "xx", "yyy"]).decompose()
|