From 06f3958fb934acbae4fa0d21a6b98b704cdb10c1 Mon Sep 17 00:00:00 2001 From: Donny Greenberg Date: Fri, 8 May 2020 17:17:12 -0400 Subject: [PATCH] Add CZ to operators init (accidentally was missing) (#961) * Add CZ to init (accidentally was missing). * Add CZ to docs. --- qiskit/aqua/operators/__init__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qiskit/aqua/operators/__init__.py b/qiskit/aqua/operators/__init__.py index 99b5d8856f..2f3bd66ae8 100644 --- a/qiskit/aqua/operators/__init__.py +++ b/qiskit/aqua/operators/__init__.py @@ -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` @@ -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 @@ -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' ]