Class/Object

scotty.simulator

QuantumSimulator

Related Docs: object QuantumSimulator | package simulator

Permalink

case class QuantumSimulator()(implicit random: Random = new Random) extends QuantumContext with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, QuantumContext, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QuantumSimulator
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. QuantumContext
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QuantumSimulator()(implicit random: Random = new Random)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def controlMatrix(gate: ControlGate): Matrix

    Permalink

    Generates a matrix based on the top-level control gate and nested control and target child gates.

    Generates a matrix based on the top-level control gate and nested control and target child gates.

    First, it generates an array of arrays. Each array is a binary representation of the decimal state vector index. For example, a vector of length 2 can be represented with the following matrix:

    Array( Array(0, 0), Array(0, 1), Array(1, 0), Array(1, 1) )

    Second, for each top-level array we check if control bits are triggered and if they are then we apply the final target gate to the target qubits.

    gate

    control gate that this method generates a matrix for

    returns

    final matrix representing the control gate acting on all involved qubits

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. val gateGenerators: Map[String, GateGen]

    Permalink
  10. def gateMatrix(gate: Gate): Matrix

    Permalink
    Definition Classes
    QuantumSimulatorQuantumContext
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. val identityMatrix: ApacheMatrix

    Permalink
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def isUnitary(g: Gate): Boolean

    Permalink
    Definition Classes
    QuantumSimulatorQuantumContext
  15. def measure(register: QubitRegister, sp: Superposition): Collapsed

    Permalink
    Definition Classes
    QuantumSimulatorQuantumContext
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def opToGate(op: Op, qubitCount: Int): Seq[Gate]

    Permalink
  20. def prepareGate(gate: Gate, qubitCount: Int): Gate

    Permalink
  21. def product(gate: Gate, sp: Superposition): Superposition

    Permalink
    Definition Classes
    QuantumSimulatorQuantumContext
  22. def registerToSuperposition(register: QubitRegister): Superposition

    Permalink
  23. def run(circuit: Circuit): State

    Permalink
    Definition Classes
    QuantumSimulatorQuantumContext
  24. def runAndMeasure(circuit: Circuit): Collapsed

    Permalink
    Definition Classes
    QuantumContext
  25. def swapMatrix(gate: SwapGate): Matrix

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def targetMatrix(targetGate: Gate): Matrix

    Permalink
  28. def tensorProduct(sp1: Superposition, sp2: Superposition): Superposition

    Permalink
    Definition Classes
    QuantumSimulatorQuantumContext
  29. def tensorProduct(g1: Gate, g2: Gate): TargetGate

    Permalink
    Definition Classes
    QuantumSimulatorQuantumContext
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from QuantumContext

Inherited from AnyRef

Inherited from Any

Ungrouped