Skip to content

Commit

Permalink
Fix import order on non Intel builds.
Browse files Browse the repository at this point in the history
When building and running on non-Intel built systems (eg MacOS), the import order is important, as well as the explicit initialisation. This example now reflects that requirement.
  • Loading branch information
mlxd authored Mar 13, 2020
1 parent a8e19e9 commit 5e717dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ The above commands should verify the C++ modules work correctly. To verify if th
```bash
source ./load_env.sh
python -c "import QNLP as q; import PyQNLPSimulator as p; num_qubits = 8; sim = p(num_qubits, False); p.PrintStates(\"Test\", []);"
python -c "from PyQNLPSimulator import PyQNLPSimulator as p; import QNLP as q; num_qubits = 8; sim = p(num_qubits, False); sim.initRegister(); sim.printStates(\"Test\", []);"
```
The above command will load the necessary modules into the Python environment, create a simulator of 8 qubits, and print out the state coefficients. If all succeeds, the environment has been correctly set. Additionally, we can use start the `jupyter notebook` environment and run a sample notebook, located at `<QNLP_ROOT>/modules/py/nb` to further investigate.
The above command will load the necessary modules into the Python environment, create a simulator of 8 qubits, and print out the state coefficients. If all succeeds, the environment has been correctly set. Additionally, we can use start the `jupyter notebook` environment and run a sample notebook, located at `<QNLP_ROOT>/modules/py/nb` to further investigate.

0 comments on commit 5e717dc

Please sign in to comment.