Skip to content

Instantly share code, notes, and snippets.

@shanto268
Last active February 21, 2024 16:41
Show Gist options
  • Save shanto268/99ea3ce60d61e10a00e292f548b59c39 to your computer and use it in GitHub Desktop.
Save shanto268/99ea3ce60d61e10a00e292f548b59c39 to your computer and use it in GitHub Desktop.
Installing qiskit-metal on a M1 Mac (Apple Silicon)

There was no one resource avaiable online that walks through the process of installing qiskit-metal on a M1 Mac (Apple Silicon).

Hoping this helps others.

  1. Create a fresh conda environment with python 3.9 and configure it to emulate x86
CONDA_SUBDIR=osx-64 conda create -n <env_name> python=3.9
conda activate <env_name>
conda config --env --set subdir osx-64
  1. Clone the qiskit metal repo
    $ git clone https://github.com/Qiskit/qiskit-metal.git
    

3.. Go into the repo to update your conda environment and then install qiskit metal

	$ cd qiskit-metal
	$ conda env update -n <env_name> environment.yml
	$ python -m pip install --no-deps -e .

Resources:

@priti-ashvin-shah-ibm
Copy link

The metal repo is now using minimum of python 3.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment