npm.io
0.9.0 • Published 7 years ago

@qiskit/utils

Licence
Apache-2.0
Version
0.9.0
Deps
3
Size
16 kB
Vulns
0
Weekly
0
Stars
116
DeprecatedThis package is deprecated

Qiskit.js utils

Quantum Information Science Kit utils library, shared among the rest of the qiskit-* packages.

Please visit the main repository of the project to know about the rest of the tools.

Install

Install lastest Node.js stable version (or LTS) and then:

npm i @qiskit/utils

Use

You can visit the complete example in this test.

const utils = require('@qiskit/utils');

console.log('Version');
console.log(utils.version);

API

Full specification.

version

The actual version of the library.

  • version (string) - Version number.
debug

Our debugger. A wrapper for debug.

  • debug (object) - The same object provided in the original library.
pathToTag(fullPath) -> tag

To get a consistent tag among all the project debugging. So we use with the debug method.

  • fullPath (string) - The full path of the file we're debugging.
  • tag (string) - The name of the file.
ayb

A wrapper for ayb.

  • ayb (object) - The same object provided in the original library.

Keywords