Sequential Quantum Gate Decomposer  v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Classes | Functions | Variables
tests.gates.test_gates Namespace Reference

Classes

class  Test_operations
 

Functions

def make_u2 (self, phi, lam, target_qbit)
 

Variables

 qiskit_version = qiskit.version.get_version_info()
 

Detailed Description

Copyright 2020 Peter Rakyta, Ph.D.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

You should have received a copy of the GNU General Public License
along with this program.  If not, see http://www.gnu.org/licenses/.

Function Documentation

◆ make_u2()

def tests.gates.test_gates.make_u2 (   self,
  phi,
  lam,
  target_qbit 
)
This function is used to add a U2 gate to the circuit.
It is a workaround for the fact that Qiskit does not have a U2 gate.

Definition at line 31 of file test_gates.py.

Variable Documentation

◆ qiskit_version

tests.gates.test_gates.qiskit_version = qiskit.version.get_version_info()

Definition at line 28 of file test_gates.py.