Learn R Programming

qsimulatR (version 1.1.1)

*,swapgate,qstate-method: times-swapgate-qstate

Description

Applies a SWAP gate to a quantum state.

Usage

# S4 method for swapgate,qstate
*(e1, e2)

Value

An object of S4 class 'qstate'

Arguments

e1

object of S4 class 'swapgate'

e2

object of S4 class 'qstate'