code: def circuit_to_latex_using_qcircuit(
          circuit: circuits.Circuit,
          qubit_order: ops.QubitOrderOrList = ops.QubitOrder.DEFAULT) -> str:
      
      diagram = circuit.to_text_diagram_drawer(
          qubit_namer=qcircuit_qubit_namer,
          qubit_order=qubit_order,
          get_circuit_diagram_info=get_qcircuit_diagram_info)
      return _render(diagram)
docs: Returns a QCircuit-based latex diagram of the given circuit.
  
      Args:
          circuit: The circuit to represent in latex.
          qubit_order: Determines the order of qubit wires in the diagram.
  
      Returns:
          Latex code for the diagram.