Private types and functions

MimiqCircuitsBase.LazyExprType
LazyExpr(type, args)

Helps evaluating expressions lazily.

Evaluation occurs only then the LazyExpr is called with some arguments, and the arguments will be passed to the inner part of the expression.

source
MimiqCircuitsBase.exponentMethod
exponent(poweroperation)

Exponent associated with a power operation

Examples

julia> MimiqCircuitsBase.exponent(power(GateH(), 2))
2

julia> MimiqCircuitsBase.exponent(GateSX())
1//2
source
MimiqCircuitsBase.unwrappedmatrixMethod
unwrappedmatrix(gate)

Returns the matrix associated to the specified quantum gate without the Symbolics.Num wrapper.

Note

If any of the gate's parameters is symbolic, an error is thrown.

See also matrix.

Examples

julia> unwrappedmatrix(GateRX(π/2))
2×2 Matrix{ComplexF64}:
 0.707107+0.0im            0.0-0.707107im
      0.0-0.707107im  0.707107+0.0im

julia> unwrappedmatrix(GateH())
2×2 Matrix{Float64}:
 0.707107   0.707107
 0.707107  -0.707107
source
MimiqLink.ConnectionType
struct Connection

Connection with the MIMIQ Services.

Attributes

  • uri: the URI of the connected instance
  • tokens_channel: channel updated with the latest refreshed token
  • refresher: task that refreshes the token on a configured interval
source
MimiqLink.printrequestsMethod
printrequests(conn; kwargs...)

Print the list of requests on the MIMIQ Cloud Services.

Keyword arguments

  • status: filter by status. Can be NEW, RUNNING, ERROR, CANCELED, DONE.
  • userEmail: filter by user email.
  • limit: limit the number of requests to retrieve. Can be [10, 50, 100, 200].
  • page: page number to retrieve.
source
MimiqLink.requestsMethod
requests(conn; kwargs...)

Retrieve the list of requests on the MIMIQ Cloud Services.

Note

It is only possible to retrieve the requests that the user has permissions to see. This is often limited to the requests that the user has created, for normal users, and to all organization requests, for organization administrators.

Keyword arguments

  • status: filter by status. Can be NEW, RUNNING, ERROR, CANCELED, DONE.
  • userEmail: filter by user email.
  • limit: limit the number of requests to retrieve. Can be [10, 50, 100, 200].
  • page: page number to retrieve.
source