Skip to content

Commit

Permalink
changed example to use fake backend, updated for pep8 (Qiskit#7)
Browse files Browse the repository at this point in the history
* changed example to use fake backend, updated for pep8

* fix lint errors
  • Loading branch information
dcmckayibm authored and nonhermitian committed Sep 17, 2019
1 parent de48cb8 commit ffbe7fe
Show file tree
Hide file tree
Showing 24 changed files with 387 additions and 345 deletions.
39 changes: 20 additions & 19 deletions example/pulse_sim.ipynb

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions qiskit/providers/aer/openpulse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""Init for openpulse"""

import distutils.sysconfig
import numpy as np
from .qutip_lite.cy import pyxbuilder as pbldr

# Remove -Wstrict-prototypes from cflags
cfg_vars = distutils.sysconfig.get_config_vars()
if "CFLAGS" in cfg_vars:
cfg_vars["CFLAGS"] = cfg_vars["CFLAGS"].replace("-Wstrict-prototypes", "")
CFG_VARS = distutils.sysconfig.get_config_vars()
if "CFLAGS" in CFG_VARS:
CFG_VARS["CFLAGS"] = CFG_VARS["CFLAGS"].replace("-Wstrict-prototypes", "")

# Setup pyximport
# pylint: disable=no-member
pbldr.install(setup_args={'include_dirs': [np.get_include()]})
del pbldr
Loading

0 comments on commit ffbe7fe

Please sign in to comment.