Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@qiskit/devs
Advanced tools
:atom_symbol: Quantum Information Science Kit algorithms for developers. The idea is to hide all quantum mechanics complexity exposing only the upper layer.
Please visit the main repository of the project to know about the rest of the tools.
:coffee: Install lastest Node.js stable version (or LTS) and then:
npm i @qiskit/devs
:pencil: As you can see in the next section, we have to use it like in the rest of independent modules. The only difference is we need to pass the engine as any other option.
const qiskit = require('@qiskit/devs');
// With the default engine and length.
qiskit.random().then(rand => console.log(`Random number(default): ${rand}`));
qiskit
.random({
engine: 'anu',
length: 8,
})
.then(rand => console.log(`Random number: ${rand}`));
:eyes: Full specification. Here are reflected the common options among the different engines, but some of them can receive (even need) extra ones, ie: an API key. Please check the packages.
version
The actual version of the library.
version
(string) - Version number.async random(opts) -> rand | jobId
Generate a true random number among 0 and 1.
opts
(object) - Optional parameters:
engine
(string) - Where to run the operation. Please visit the packages to see the supported ones. The number of digits depends on the selected engine. (default: "js")length
(number) - Number of random hex characters to ask for to the engine. As you can see in the doc referenced before each engine has different limit, they will throw in it's overpassed. (default: 16)format
(string) - To ask for the result in a different format, supported ("hex").custom
(string/object) - Custom stuff (API key, inited connector instance, etc) needed for some backends (visit each specific doc).rand
(number) - Generated random number in the desired format if the operation doesn't involves a background job.jobId
(string) - Identifier for the generated background job (see next method).async result(jobId, opts) -> result
Get the result of a background job generated by an algorithm method. The engine is ommited because IBM Q is the unique which uses background jobs for now.
jobId
(string) - Job identifier got as initial response.opts
(object) - Optional parameters:
custom
result
(?) - Depending on the used agorithm:
status
(string) - To know if the job has finished correctly. Supported: "running", "completed", TODO.data
(number) - Generated random number. Only present if "status" is "completed".async factor(number) -> prime
Integer factorization in prime numbers using Shor's algorithm. Only supported in the local simulator for now, so the engine is also ommited here for now. The result can be invalid, retry in this clase.
number
(number/string) - Number to factorize, an integer for now.prime
(number) - Prime factor of the passed one.[0.7.0] - 2019-04-12
@qiskit/qiskit-sim
: Introduce Gate class.@qiskit/qiskit-sim
: Add the identity (id) gate.@qiskit/qiskit-sim
: Add createCircuit factory function.@qiskit/qiskit-sim
: Support method chaining for addGate.@qiskit/qiskit-sim
: Move utility functions to utils.@qiskit/qiskit-sim
: Add dimension parameter to initTransform.qiskit
: Improve the return of job related commands in the command line client.FAQs
Quantum Information algorithms for developers
The npm package @qiskit/devs receives a total of 2 weekly downloads. As such, @qiskit/devs popularity was classified as not popular.
We found that @qiskit/devs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.