시작하기#

설치#

Qiskit Machine Learning depends on Qiskit, which has its own Qiskit Getting Started detailing 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 Machine Learning.

Qiskit Machine Learning에는 종속 코드 및/또는 지원 프로그램이 기본적으로 설치되어 있지 않은 (또는 설치될 수 없는) 일부 선택적인 기능들이 있다. 이에는 PyTorch와 Sparse가 있다. 자세한 내용은 선택적 설치 를 참조하여라.

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, install Qiskit Machine Learning as follows:

pip install qiskit-machine-learning

참고

As Qiskit Machine Learning 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.

Python 패키지 인덱스 (PyPI) 저장소를 이용하여 설치하는 대신 소스 코드로부터 Qiskit 머신러닝을 설치하면 개발중인 가장 최근 업데이트된 버전을 사용할 수 있다. 이를 통해 손쉽게 Qiskit 머신러닝의 최신 코드를 들여다 보고 확장할 수 있다.

Qiskit Machine Learning은 Qiskit에 의존하므로 최신 변경 사항에는 Qiskit의 새로운 기능이나 변경된 기능이 필요할 수 있다. 따라서 다음 문서에 있는 Qiskit의 “소스 코드로 설치” 의 지시사항을 먼저 수행해야 한다: Qiskit 시작하기

Installing Qiskit Machine Learning from Source

Qiskit을 설치한 동일한 개발 환경을 사용하여 Qiskit Machine Learning을 설치할 준비가 되었다.

  1. Qiskit Machine Learning 저장소를 복제한다.

    git clone https://github.com/qiskit-community/qiskit-machine-learning.git
    
  2. 저장소를 복제하면 ``qiskit-machine-learning``라는 이름의 로컬 디렉토리가 생성된다.

    cd qiskit-machine-learning
    
  3. 만약 테스트 코드를 실행하거나 철자법 검사를 하고자 한다면, 개발자 요구사항 라이브러리를 설치하라.

    pip install -r requirements-dev.txt
    
  4. ``qiskit-machine-learning``을 설치한다.

    pip install .
    

만약, 프로젝트에 코드가 변화하였을 때 재설치가 필요하지 않는, 수정 가능한 모드로 설치하고자 한다면, 다음의 명령어를 사용하라.

pip install -e .

선택적 설치#

  • PyTorch, may be installed either using command pip install 'qiskit-machine-learning[torch]' to install the package or refer to PyTorch getting started. When PyTorch is installed, the TorchConnector facilitates its use of quantum computed networks.

  • Sparse, may be installed using command pip install 'qiskit-machine-learning[sparse]' to install the package. Sparse being installed will enable the usage of sparse arrays/tensors.


시작할 준비가 다 되었다면…#

Dive into the tutorials

Find out about Qiskit Machine Learning.

Qiskit Machine Learning tutorials