ApiAdapter
==========

.. autoclass:: pennylane_calculquebec.API.adapter.ApiAdapter
   :show-inheritance:

   
     
   

   
   

   

   .. raw:: html

      <a class="attr-details-header collapse-header collapsed" data-bs-toggle="collapse" href="#attrDetails-pennylane-calculquebec-API-adapter-ApiAdapter" role="button" aria-expanded="false" aria-controls="attrDetails-pennylane-calculquebec-API-adapter-ApiAdapter">
         <h2 style="font-size: 24px;">
            <i class="fas fa-angle-down rotate" style="float: right;"></i> Attributes
         </h2>
      </a>
      <div class="collapse show" id="attrDetails-pennylane-calculquebec-API-adapter-ApiAdapter">

   
   

   .. autosummary::
      
   
      ~ApiAdapter.client
      ~ApiAdapter.headers

   
   

   
   .. autoattribute:: client
   .. autoattribute:: headers

   .. raw:: html

      </div>

   
   

   
   

   .. raw:: html

      <a class="meth-details-header collapse-header collapsed" data-bs-toggle="collapse" href="#methDetails-" role="button" aria-expanded="false" aria-controls="methDetails-">
         <h2 style="font-size: 24px;">
            <i class="fas fa-angle-down rotate" style="float: right;"></i> Methods
         </h2>
      </a>
      <div class="collapse show" id="methDetails-">

   
   

   .. autosummary::
   
      ~ApiAdapter.clean_cache
      ~ApiAdapter.get_benchmark
      ~ApiAdapter.get_connectivity_for_machine
      ~ApiAdapter.get_machine_by_name
      ~ApiAdapter.get_project_id_by_name
      ~ApiAdapter.get_qubits_and_couplers
      ~ApiAdapter.initialize
      ~ApiAdapter.instance
      ~ApiAdapter.is_last_update_expired
      ~ApiAdapter.job_by_id
      ~ApiAdapter.list_jobs
      ~ApiAdapter.list_machines
      ~ApiAdapter.post_job
      ~ApiAdapter.raise_exception

   
   

   
   .. automethod:: clean_cache
   .. automethod:: get_benchmark
   .. automethod:: get_connectivity_for_machine
   .. automethod:: get_machine_by_name
   .. automethod:: get_project_id_by_name
   .. automethod:: get_qubits_and_couplers
   .. automethod:: initialize
   .. automethod:: instance
   .. automethod:: is_last_update_expired
   .. automethod:: job_by_id
   .. automethod:: list_jobs
   .. automethod:: list_machines
   .. automethod:: post_job
   .. automethod:: raise_exception

   .. raw:: html

      </div>

   
   

   .. raw:: html

      <script type="text/javascript">
             document.querySelectorAll('.collapse-header').forEach((header) => {
                header.addEventListener('click', () => {
                   const icon = header.querySelector('h2 i');
                   if (icon) icon.classList.toggle('up');
                });
             });
      </script>