Operator

@qbead/bloch-sphere


@qbead/bloch-sphere / Operator

Class: Operator

Defined in: src/math/operator.ts:12arrow-up-right

Quantum operators are 2x2 matrices of complex numbers

[ a  b ]
[ c  d ]

Constructors

Constructor

new Operator(elements): Operator

Defined in: src/math/operator.ts:22arrow-up-right

Parameters

Parameter
Type

elements

Returns

Operator

Properties

Property
Type
Defined in

Accessors

a

Get Signature

get a(): Complex

Defined in: src/math/operator.ts:29arrow-up-right

The first row, first column element of the operator

Returns

Complex


b

Get Signature

get b(): Complex

Defined in: src/math/operator.ts:36arrow-up-right

The first row, second column element of the operator

Returns

Complex


c

Get Signature

get c(): Complex

Defined in: src/math/operator.ts:43arrow-up-right

The second row, first column element of the operator

Returns

Complex


d

Get Signature

get d(): Complex

Defined in: src/math/operator.ts:50arrow-up-right

The second row, second column element of the operator

Returns

Complex

Methods

applyTo()

applyTo(rho): Complex[][]

Defined in: src/math/operator.ts:100arrow-up-right

Apply this operator to a density matrix

Parameters

Parameter
Type

rho

Returns

Complex[][]


clone()

clone(): Operator

Defined in: src/math/operator.ts:59arrow-up-right

Returns

Operator


conjugateTranspose()

conjugateTranspose(): Operator

Defined in: src/math/operator.ts:90arrow-up-right

Get the conjugate transpose of the operator as a new operator

Returns

Operator


copy()

copy(other): Operator

Defined in: src/math/operator.ts:54arrow-up-right

Parameters

Parameter
Type

other

Operator

Returns

Operator


determinant()

determinant(): Complex

Defined in: src/math/operator.ts:122arrow-up-right

Get the determinant of the operator

Returns

Complex


plus()

plus(other): Operator

Defined in: src/math/operator.ts:108arrow-up-right

Add another operator to this operator

Parameters

Parameter
Type

other

Operator

Returns

Operator


quaternion()

quaternion(): Quaternion

Defined in: src/math/operator.ts:129arrow-up-right

Get this operator as a THREE.Quaternion

Returns

Quaternion


scale()

scale(scalar): Operator

Defined in: src/math/operator.ts:68arrow-up-right

Multiply the operator by a scalar

Parameters

Parameter
Type

scalar

number

Returns

Operator


times()

times(other): Operator

Defined in: src/math/operator.ts:76arrow-up-right

Multiply the operator by another operator

Parameters

Parameter
Type

other

Operator

Returns

Operator


identity()

static identity(): Operator

Defined in: src/math/operator.ts:15arrow-up-right

Returns

Operator

Last updated