Skip to content

bajwa4200/Quan_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

AI Assistant Chatbot with Quantum Computing

Overview

This project integrates a GPT-3.5-based chatbot with quantum computing capabilities. Utilizing OpenAI’s GPT-3.5-turbo for generating responses and IBM's quantum backend for quantum computations, this project combines natural language processing with cutting-edge quantum technology.

Features

  • GPT-3.5 Chatbot: Leverages OpenAI's GPT-3.5-turbo to generate intelligent responses.
  • Quantum Computation: Executes a quantum circuit on IBM's quantum hardware and returns quantum state probabilities.
  • Gradio Interface: Provides a user-friendly web interface for interacting with the chatbot.

Prerequisites

  • Python 3.6 or later
  • IBM Quantum Experience account with an API token

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/quantum-chatbot.git
    cd quantum-chatbot
    
  2. Set up a virtual environment (recommended):

    python -m venv env
    source env/bin/activate  # On Windows, use `env\Scripts\activate`
    
  3. Install the required Python packages:

    Create a requirements.txt file with the following content:

    gradio
    qiskit
    qiskit_ibm_runtime
    g4f
    
    
  4. Configuration

    Update IBM Quantum API Token:

    Replace the placeholder token in app.py with your actual IBM Quantum API token:

    token="YOUR_IBMQ_TOKEN_HERE"
  5. Usage

    Run the application:

    Start the Gradio interface by executing:

    python app.py
    

User Input:

What is the current state of quantum computation?
[GPT-3.5 response to the user query]
Quantum Result: [Quantum computation result]



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published