Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

scqubits

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scqubits - npm Package Compare versions

Comparing version
4.3
to
4.3.1
+0
-0
.github/ISSUE_TEMPLATE/bug_report.md

@@ -0,0 +0,0 @@ ---

@@ -0,0 +0,0 @@ name: black-check-latest

+3
-5

@@ -57,3 +57,3 @@ name: Locally install scqubits with mambabuild and run pytests

run: |
mamba install boa
conda install boa
conda mambabuild . --no-test

@@ -63,6 +63,4 @@

run: |
mamba install --use-local scqubits
mamba install pytest
mamba install pytest-cov
mamba install pathos
conda install -c local scqubits
conda install pytest pytest-cov pathos
pytest -v --pyargs --cov=scqubits --cov-report=xml

@@ -69,0 +67,0 @@ pytest -v --pyargs scqubits --num_cpus=4

@@ -1,26 +0,71 @@

name: Upload Python Package to PyPi
# This workflow will upload a Python Package to PyPI when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload Python Package
on:
release:
types: [created]
types: [published]
permissions:
contents: read
jobs:
deploy:
release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build release distributions
run: |
# NOTE: put your own distribution build steps here.
python -m pip install build
python -m build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
# Dedicated environments with protections for publishing are strongly recommended.
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
environment:
name: pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
# url: https://pypi.org/p/YOURPROJECT
#
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
# ALTERNATIVE: exactly, uncomment the following line instead:
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
password: ${{ secrets.PYPI_API_TOKEN }}

@@ -0,0 +0,0 @@ .DS_Store

@@ -0,0 +0,0 @@ # Python package

@@ -0,0 +0,0 @@ @article{scqubits2,

@@ -0,0 +0,0 @@ BSD 3-Clause License

@@ -0,0 +0,0 @@ include README.md

+25
-34
{% set name = "scqubits" %}
{% set version = "4.1.0" %}
{% set version = "4.3.1" %}
{% set python_min = "3.9" %}

@@ -9,56 +10,46 @@ package:

source:
# url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
# sha256: b721600b0d782c9ffea03ff7cd69f7b01ed7f72f3022ff37e943881d7b17af41
# url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
# sha256: ac6e86777299411c1b8746c744a37f96647093b344fede137d2161d2886ae0de
path: .
build:
number: 0
skip: true # [py<37]
script: "{{ PYTHON }} -m pip install . -vv"
number: 1
noarch: python
script: {{ PYTHON }} -m pip install . -vv
channels:
- conda-forge
requirements:
host:
- python
- python {{ python_min }}
- setuptools
- setuptools-scm
- pip
- cython >=0.29.20
- numpy >=1.14.2
build:
- python
- cython >=0.29.20
- numpy >=1.14.2
- scipy
- {{ compiler('cxx') }}
- wheel
run:
- python
- python >={{ python_min }}
- cycler
- matplotlib >=3.5.1
- dill
- pathos >=0.3.0
- matplotlib-base >=3.5.1
- numpy >=1.14.2
- qutip >=4.3.1
- scipy >=1.5
- dill
- sympy
- tqdm
- typing_extensions
# Optional dependencies
- ipywidgets >=7.5
- ipyvuetify
- matplotlib-label-lines >=0.3.6
- h5py >=2.10
- pathos >=0.3.0
- traitlets
# Optional dependencies
- ipywidgets
- ipyvuetify
test:
imports:
- scqubits
requires:
- pytest
- pytest-cov
- pathos
source_files:
- scqubits/
imports:
- scqubits
- pip
- python {{ python_min }}
commands:
- pytest -v --pyargs scqubits
- pytest -v --pyargs scqubits --num_cpus=4
- pytest --pyargs scqubits
- pip check

@@ -65,0 +56,0 @@ about:

@@ -1,4 +0,4 @@

Metadata-Version: 2.2
Metadata-Version: 2.4
Name: scqubits
Version: 4.3
Version: 4.3.1
Summary: scqubits: superconducting qubits in Python

@@ -74,2 +74,3 @@ Author-email: Jens Koch <jens-koch@northwestern.edu>, Peter Groszkowski <piotrekg@gmail.com>

Requires-Dist: h5py>=2.10; extra == "develop"
Dynamic: license-file

@@ -76,0 +77,0 @@ scqubits: superconducting qubits in Python

@@ -0,0 +0,0 @@ [build-system]

@@ -0,0 +0,0 @@ scqubits: superconducting qubits in Python

@@ -1,4 +0,4 @@

Metadata-Version: 2.2
Metadata-Version: 2.4
Name: scqubits
Version: 4.3
Version: 4.3.1
Summary: scqubits: superconducting qubits in Python

@@ -74,2 +74,3 @@ Author-email: Jens Koch <jens-koch@northwestern.edu>, Peter Groszkowski <piotrekg@gmail.com>

Requires-Dist: h5py>=2.10; extra == "develop"
Dynamic: license-file

@@ -76,0 +77,0 @@ scqubits: superconducting qubits in Python

@@ -0,0 +0,0 @@ # scqubits: superconducting qubits in Python

@@ -0,0 +0,0 @@ # This file is part of scqubits: a Python package for superconducting qubits,

@@ -0,0 +0,0 @@ # central_dispatch.py

@@ -0,0 +0,0 @@ from typing import Tuple, Optional, Union, Dict

@@ -0,0 +0,0 @@ from typing import Any, Callable, Dict, List, Optional, Tuple, Union, TYPE_CHECKING

@@ -0,0 +0,0 @@ import functools

@@ -0,0 +0,0 @@ # circuit-utils.py

@@ -253,3 +253,6 @@ # circuit.py

def _configure(self) -> None:
def _configure(
self,
subsys_dict: Optional[Dict[str, Any]] = None,
) -> None:
"""Function which is used to initiate the subsystem instance."""

@@ -273,3 +276,3 @@ self._frozen = False

self._hamiltonian_sym_for_numerics = self.hamiltonian_symbolic.copy()
self._generate_subsystems()
self._generate_subsystems(subsys_dict=subsys_dict)
self.ext_basis = self.get_ext_basis()

@@ -276,0 +279,0 @@ self._update_interactions()

@@ -0,0 +0,0 @@ # constants.py

@@ -0,0 +0,0 @@ # descriptors.py

@@ -0,0 +0,0 @@ # diag.py

@@ -0,0 +0,0 @@ # discretization.py

@@ -0,0 +0,0 @@ # flux_qubit.py

@@ -0,0 +0,0 @@ # fluxonium.py

@@ -0,0 +0,0 @@ # generic_qubit.py

@@ -0,0 +0,0 @@ # hilbert_space.py

@@ -0,0 +0,0 @@ # namedslots_array.py

@@ -0,0 +0,0 @@ # operators.py

@@ -0,0 +0,0 @@ # oscillator.py

@@ -0,0 +0,0 @@ # qubit_base.py

@@ -0,0 +0,0 @@ # spec_lookup.py

@@ -0,0 +0,0 @@ # storage.py

@@ -0,0 +0,0 @@ # sweeps.py

@@ -0,0 +0,0 @@ import copy

@@ -0,0 +0,0 @@ # symbolic_circuit.py

@@ -0,0 +0,0 @@ # transmon.py

@@ -0,0 +0,0 @@ # units.py

@@ -0,0 +0,0 @@ # zeropi_full.py

@@ -0,0 +0,0 @@ # zeropi.py

@@ -0,0 +0,0 @@ # explorer_panels.py

@@ -0,0 +0,0 @@ # explorer_settings.py

@@ -0,0 +0,0 @@ # explorer_widget.py

@@ -0,0 +0,0 @@ # fileio_backends.py

@@ -0,0 +0,0 @@ # fileio_qutip.py

@@ -0,0 +0,0 @@ # fileio_serializers.py

@@ -0,0 +0,0 @@ # fileio.py

# Marker file for PEP 561.

@@ -0,0 +0,0 @@ """

@@ -0,0 +0,0 @@ # testing.py

@@ -0,0 +0,0 @@ # conftest.py --- for use with pytest

@@ -0,0 +0,0 @@ branches:

@@ -0,0 +0,0 @@ branches:

@@ -0,0 +0,0 @@ # zero-pi

@@ -0,0 +0,0 @@ # test_centraldispatch.py

@@ -0,0 +0,0 @@ import os

@@ -231,3 +231,3 @@ # test_circuit.py

@staticmethod
def test_get_spectrum_vs_paramvals(num_cpus):
def test_circuit_parametersweep(num_cpus):
DFC = scq.Circuit(

@@ -277,2 +277,3 @@ DATADIR + "circuit_DFC.yaml",

)
ps.run()

@@ -279,0 +280,0 @@ @staticmethod

@@ -0,0 +0,0 @@ # test_cos2phi_qubit.py

@@ -0,0 +0,0 @@ # test_diag.py

@@ -0,0 +0,0 @@ # test_explorer.py

@@ -0,0 +0,0 @@ # test_fluxonium.py

@@ -0,0 +0,0 @@ # test_fluxqubit.py

@@ -0,0 +0,0 @@ # test_fullzeropi.py

@@ -0,0 +0,0 @@ # test_gui.py

@@ -0,0 +0,0 @@ # test_hilbertspace.py

@@ -0,0 +0,0 @@ # test_namedslotsndarray.py

@@ -0,0 +0,0 @@ # test_noise.py

@@ -0,0 +0,0 @@ # test_parameters.py

@@ -0,0 +0,0 @@ # test_parametersweep.py

@@ -0,0 +0,0 @@ # test_spectrumlookup.py

@@ -0,0 +0,0 @@ # test_transmon.py

@@ -0,0 +0,0 @@ # test_units.py

@@ -0,0 +0,0 @@ # test_zeropi.py

@@ -0,0 +0,0 @@ # This file is part of scqubits: a Python package for superconducting qubits,

@@ -0,0 +0,0 @@ # gui_custom_widgets.py

@@ -390,3 +390,3 @@ # gui_defaults.py

"|·|": "abs",
"|\u00B7|\u00B2": "abs_sqr",
"|\u00b7|\u00b2": "abs_sqr",
}

@@ -393,0 +393,0 @@

@@ -0,0 +0,0 @@ # gui_navbar.py

@@ -0,0 +0,0 @@ # gui_setup.py

@@ -0,0 +0,0 @@ # hspace_widget.py

@@ -0,0 +0,0 @@ # qubit_widget.py

@@ -0,0 +0,0 @@ # This file is part of scqubits: a Python package for superconducting qubits,

@@ -0,0 +0,0 @@ # cpu_switch.py

@@ -0,0 +0,0 @@ # misc.py

@@ -165,3 +165,3 @@ # plot_defaults.py

def matelem_vs_paramvals(
specdata: Union["SpectrumData", "DataStore"]
specdata: Union["SpectrumData", "DataStore"],
) -> Dict[str, Any]:

@@ -168,0 +168,0 @@ """Plot defaults for plotting.matelem_vs_paramvals."""

@@ -0,0 +0,0 @@ # plot_utils.py

@@ -0,0 +0,0 @@ # plotting.py

@@ -388,3 +388,3 @@ # spectrum_utils.py

def recast_esys_mapdata(
esys_mapdata: List[Tuple[np.ndarray, np.ndarray]]
esys_mapdata: List[Tuple[np.ndarray, np.ndarray]],
) -> Tuple[np.ndarray, List[np.ndarray]]:

@@ -391,0 +391,0 @@ """Takes data generated by a map of eigensystem calls and returns the eigenvalue and

@@ -0,0 +0,0 @@ # typedefs.py

@@ -1,6 +0,11 @@

# file generated by setuptools_scm
# file generated by setuptools-scm
# don't change, don't track in version control
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union
from typing import Tuple
from typing import Union
VERSION_TUPLE = Tuple[Union[int, str], ...]

@@ -15,3 +20,3 @@ else:

__version__ = version = '4.3'
__version_tuple__ = version_tuple = (4, 3)
__version__ = version = '4.3.1'
__version_tuple__ = version_tuple = (4, 3, 1)

@@ -0,0 +0,0 @@ [egg_info]

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display