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

Commit

Permalink
Add CZ to operators init (accidentally was missing) (#961)
Browse files Browse the repository at this point in the history
* Add CZ to init (accidentally was missing).

* Add CZ to docs.
  • Loading branch information
dongreenberg authored May 8, 2020
1 parent 3a6b20f commit 06f3958
Showing 1 changed file with 6 additions and 3 deletions.
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,
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'
]

0 comments on commit 06f3958

Please sign in to comment.