Packages

case class QuantumSimulator(ec: Option[ExecutionContext], random: Random) extends QuantumContext with Product with Serializable

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

Instance Constructors

  1. new QuantumSimulator(ec: Option[ExecutionContext], random: Random)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def controlMatrix(gate: ControlGate): Matrix

    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. def cphase0Matrix(gate: ControlGate, phi: Double, targetBit: Bit): Matrix
  8. def densityMatrix(vector: Vector): Matrix
    Definition Classes
    QuantumSimulatorQuantumContext
  9. val ec: Option[ExecutionContext]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def gateMatrix(gate: Gate): Matrix
    Definition Classes
    QuantumSimulatorQuantumContext
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def isUnitary(g: Gate): Boolean
    Definition Classes
    QuantumSimulatorQuantumContext
  15. def measure(register: QubitRegister, state: Vector): Collapsed
    Definition Classes
    QuantumSimulatorQuantumContext
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def padGate(gate: Gate, qubitCount: Int): Seq[Gate]
  20. def product(register: QubitRegister, gate: Gate, sp: Superposition): Superposition
    Definition Classes
    QuantumSimulatorQuantumContext
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. val random: Random
  23. def registerToState(register: QubitRegister): Vector
  24. def run(circuit: Circuit): State
    Definition Classes
    QuantumSimulatorQuantumContext
  25. def runAndMeasure(circuit: Circuit, trialsCount: Int): ExperimentResult
    Definition Classes
    QuantumSimulatorQuantumContext
  26. def runAndMeasure(circuit: Circuit): Collapsed
    Definition Classes
    QuantumContext
  27. def swapMatrix(gate: SwapGate): Matrix
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def targetMatrix(targetGate: Gate): Matrix
  30. val taskSupport: Option[ExecutionContextTaskSupport]
  31. def tensorProduct(register: QubitRegister, sp1: Superposition, sp2: Superposition): Superposition
    Definition Classes
    QuantumSimulatorQuantumContext
  32. def totalQubitCount(gate: Gate): Int
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from QuantumContext

Inherited from AnyRef

Inherited from Any

Ungrouped