test/python/test_extensions_standard.py
def assertResult(self, type_, qasm_txt, qasm_txt_):
        """
        Assert the single gate in self.circuit is of the type type_, the QASM
        representation matches qasm_txt and the QASM representation of
        inverse maches qasm_txt_.

        Args:
            type_ (type): a gate type.
            qasm_txt (str): QASM representation of the gate.
            qasm_txt_ (str): QASM representation of the inverse gate.
        """
        circuit = self.circuit
        self.assertEqual(type(circuit[0]), type_)
        self.assertQasm(qasm_txt)
        circuit[0].reapply(circuit)
        self.assertQasm(qasm_txt + '\n' + qasm_txt)
        self.assertEqual(circuit[0].inverse(), circuit[0])
        self.assertQasm(qasm_txt_ + '\n' + qasm_txt)

        Assert the single gate in self.circuit is of the type type_, the QASM
        representation matches qasm_txt and the QASM representation of
        inverse maches qasm_txt_.

        Args:
            type_ (type): a gate type.
            qasm_txt (str): QASM representation of the gate.
            qasm_txt_ (str): QASM representation of the inverse gate.
        
Assert the single gate in self.circuit is of the type type_, the QASM
representation matches qasm_txt and the QASM representation of
inverse maches qasm_txt_.
Assert the single gate in self . circuit is of the type type_ the QASM representation matches qasm_txt and the QASM representation of inverse maches qasm_txt_ .
def assertResult(self, type_, qasm_txt, qasm_txt_):
        circuit = self.circuit
        self.assertEqual(type(circuit[0]), type_)
        self.assertQasm(qasm_txt)
        circuit[0].reapply(circuit)
        self.assertQasm(qasm_txt + '\n' + qasm_txt)
        self.assertEqual(circuit[0].inverse(), circuit[0])
        self.assertQasm(qasm_txt_ + '\n' + qasm_txt)
def assertResult ( self , type_ , qasm_txt , qasm_txt_ ) : circuit = self . circuit self . assertEqual ( type ( circuit [ 0 ] ) , type_ ) self . assertQasm ( qasm_txt ) circuit [ 0 ] . reapply ( circuit ) self . assertQasm ( qasm_txt + '\n' + qasm_txt ) self . assertEqual ( circuit [ 0 ] . inverse ( ) , circuit [ 0 ] ) self . assertQasm ( qasm_txt_ + '\n' + qasm_txt )
Assert the single gate in self.circuit is of the type type_, the QASM
representation matches qasm_txt and the QASM representation of
inverse maches qasm_txt_.
Assert the single gate in self . circuit is of the type type_ the QASM representation matches qasm_txt and the QASM representation of inverse maches qasm_txt_ .
"""
        Assert the single gate in self.circuit is of the type type_, the QASM
        representation matches qasm_txt and the QASM representation of
        inverse maches qasm_txt_.

        Args:
            type_ (type): a gate type.
            qasm_txt (str): QASM representation of the gate.
            qasm_txt_ (str): QASM representation of the inverse gate.
        """
self
type_
a gate type.
a gate type .
qasm_txt
QASM representation of the gate.
QASM representation of the gate .
qasm_txt_
QASM representation of the inverse gate.
QASM representation of the inverse gate .