Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Add CZ to operators init (accidentally was missing) #961

Merged
merged 4 commits into from
May 8, 2020
Merged
Changes from 3 commits
Commits
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
9 changes: 6 additions & 3 deletions qiskit/aqua/operators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
:attr:`X`, :attr:`Y`, :attr:`Z`, :attr:`I`

Clifford+T, and some other common non-parameterized gates:
:attr:`CX`, :attr:`S`, :attr:`H`, :attr:`T`, :attr:`Swap`
:attr:`CX`, :attr:`S`, :attr:`H`, :attr:`T`, :attr:`Swap`, :attr:`CZ`

One qubit states:
:attr:`Zero`, :attr:`One`, :attr:`Plus`, :attr:`Minus`
Expand Down Expand Up @@ -153,7 +153,10 @@
Suzuki, QDrift)

# Convenience immutable instances
from .operator_globals import EVAL_SIG_DIGITS, X, Y, Z, I, CX, S, H, T, Swap, Zero, One, Plus, Minus
from .operator_globals import (EVAL_SIG_DIGITS,
dongreenberg marked this conversation as resolved.
Show resolved Hide resolved
X, Y, Z, I,
CX, S, H, T, Swap, CZ,
Zero, One, Plus, Minus)

__all__ = [
# Common
Expand All @@ -176,5 +179,5 @@
'EvolutionBase', 'EvolvedOp', 'EvolutionFactory', 'PauliTrotterEvolution', 'MatrixEvolution',
'TrotterizationBase', 'TrotterizationFactory', 'Trotter', 'Suzuki', 'QDrift',
# Convenience immutable instances
'X', 'Y', 'Z', 'I', 'CX', 'S', 'H', 'T', 'Swap', 'Zero', 'One', 'Plus', 'Minus'
'X', 'Y', 'Z', 'I', 'CX', 'S', 'H', 'T', 'Swap', 'CZ', 'Zero', 'One', 'Plus', 'Minus'
]