qiskit/unroll/_printerbackend.py
def _gate_string(self, name):
        """Print OPENQASM for the named gate."""
        out = ""
        if self.gates[name]["opaque"]:
            out = "opaque " + name
        else:
            out = "gate " + name
        if self.gates[name]["n_args"] > 0:
            out += "(" + ",".join(self.gates[name]["args"]) + ")"
            out += " " + ",".join(self.gates[name]["bits"])
        if self.gates[name]["opaque"]:
            out += ";"
        else:
            out += "\n{\n" + self.gates[name]["body"].qasm() + "}"
        return out
Print OPENQASM for the named gate.
Print OPENQASM for the named gate.
Print OPENQASM for the named gate .
def _gate_string(self, name):
        out = ""
        if self.gates[name]["opaque"]:
            out = "opaque " + name
        else:
            out = "gate " + name
        if self.gates[name]["n_args"] > 0:
            out += "(" + ",".join(self.gates[name]["args"]) + ")"
            out += " " + ",".join(self.gates[name]["bits"])
        if self.gates[name]["opaque"]:
            out += ";"
        else:
            out += "\n{\n" + self.gates[name]["body"].qasm() + "}"
        return out
def _gate_string ( self , name ) : out = "" if self . gates [ name ] [ "opaque" ] : out = "opaque " + name else : out = "gate " + name if self . gates [ name ] [ "n_args" ] > 0 : out += "(" + "," . join ( self . gates [ name ] [ "args" ] ) + ")" out += " " + "," . join ( self . gates [ name ] [ "bits" ] ) if self . gates [ name ] [ "opaque" ] : out += ";" else : out += "\n{\n" + self . gates [ name ] [ "body" ] . qasm ( ) + "}" return out
Print OPENQASM for the named gate.
Print OPENQASM for the named gate .
"""Print OPENQASM for the named gate."""
self
name