শুরুর নির্দেশনা#

স্থাপন (ইনস্টলেশন)#

Qiskit Optimization depends Qiskit. which has its own Qiskit Getting Started detailing the installation options and its supported environments/platforms. You should refer to that first. Then the information here can be followed which focuses on the additional installation specific to Qiskit Optimization.

কিস্কিট অপ্টিমাইজেশনের কিছু ফাংশন রয়েছে যা ঐচ্ছিক করা হয়েছে যেখানে নির্ভরশীল কোড এবং/অথবা সাপোর্ট প্রোগ্রাম (গুলি) ডিফল্টভাবে ইনস্টল করা হয় না (বা করা যায় না)। সেগুলো হল IBM CPLEX, CVXPY এবং Matplotlib। আরও তথ্যের জন্য ঐচ্ছিক ইনস্টল দেখুন।

The simplest way to get started is to first follow the getting started 'Start locally' guide for Qiskit

In your virtual environment where you installed Qiskit simply add optimization to the extra list in a similar manner to how the extra visualization support is installed for Qiskit, i.e: In your virtual environment, where you installed Qiskit, install Qiskit Optimization as follows:

pip install qiskit-optimization

নোট

As Qiskit Optimization depends on Qiskit, you can though simply install it into your environment, as above, and pip will automatically install a compatible version of Qiskit if one is not already installed.

উৎস থেকে উপাদানগুলি ইনস্টল করলে আপনি Qiskit এর উন্নয়নের অধীনে অতি সম্প্রতি আপডেট হওয়া সংস্করণটি ব্যবহার করতে পারবেন Python Package Index (PyPI) রিপোজিটরি থেকে ইনস্টল করার পরিবর্তে। এটি আপনাকে Qiskit Optimization কোডের সর্বশেষ সংস্করণটি আরও নিখুঁত ভাবে পরিদর্শন করার এবং প্রসারিত করার দক্ষতা দেবে।.

যেহেতু কিস্কিট অপ্টিমাইজেশন কিস্কিটের উপর নির্ভর করে, এবং এর সর্বশেষ পরিবর্তনগুলির জন্য কিস্কিটের নতুন বা পরিবর্তিত বৈশিষ্ট্যগুলির প্রয়োজন হতে পারে, তাই আপনাকে প্রথমে কিস্কিটের "Install from source" নির্দেশাবলী Qiskit Getting Started এ অনুসরণ করতে হবে

Installing Qiskit Optimization from Source

আপনি যেই কিস্কিট ইনস্টল করেছেন সেই একই কর্মপরিবেশ ব্যবহার করে আপনি কিস্কিট অপটিমাইজার ইনস্টল করতে প্রস্তুত।

  1. Qiskit অপটিমাইজার রিপোজিটরি প্রতিলিপি করুন।

    git clone https://github.com/qiskit-community/qiskit-optimization.git
    
  2. রিপোসিটোরিটিকে ক্লোন করলে qiskit-optimization নামক একটি স্থানীয় ফোল্ডার তৈরী হবে।

    cd qiskit-optimization
    
  3. টেস্ট রান করানোর জন্য বা মোলায়েম করা (লিনটিং) চেক করার জন্য, ডেভেলপারের প্রয়োজন ইনস্টল করুন।

    pip install -r requirements-dev.txt
    
  4. qiskit-optimization ইনস্টল করুন।

    pip install .
    

আপনি যদি এটিকে সম্পাদনযোগ্য মোডে ইনস্টল করতে চান, মানে এই প্রকল্পের কোড পরিবর্তনের জন্য প্রয়োগ করার জন্য পুনরায় ইনস্টল করা প্রয়োজন নেই, আপনি এটি করতে পারেন:

pip install -e .

ঐচ্ছিক ইনস্টল#

  • IBM CPLEX may be installed using pip install 'qiskit-optimization[cplex]' to enable the reading of LP files and the usage of the CplexOptimizer, wrapper for cplex.Cplex. Currently there is no python 3.9 version of CPLEX. In this case, the CPLEX install command will have no effect.

  • CVXPY may be installed using the command pip install 'qiskit-optimization[cvx]'. CVXPY being installed will enable the usage of the Goemans-Williamson algorithm as an optimizer GoemansWilliamsonOptimizer.

  • Matplotlib may be installed using the command pip install 'qiskit-optimization[matplotlib]'. Matplotlib being installed will enable the usage of the draw method in the graph optimization application classes.

  • Gurobipy may be installed using the command pip install 'qiskit-optimization[gurobi]'. Gurobipy being installed will enable the usage of the GurobiOptimizer.


আরো এগোতে প্রস্তুত?...#

Dive into the tutorials

Find out about Qiskit Optimization.

Qiskit Optimization tutorials