1.0.0 • Published 2 months ago

mode-tobogunbar v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Mode-tobogunbar

A Node.js module for performing quantum computations and simulations.

Installation

You can install this module via npm: npm install mode-tobogunbar

Usage

const quantumCalculator = require('quantum-calculator');

// Example usage
const qubitState = [0.7071067811865475, 0.7071067811865475]; // |+> state
const pauliZOperator = [[1, 0], [0, -1]];
const result = quantumCalculator.expectationValue(pauliZOperator, qubitState);
console.log('Expectation value of Pauli-Z operator:', result);