Private types and functions
MimiqCircuitsBase.LazyArg
— TypeLazyArg()
Placeholder for a lazy argument in a LazyExpr
.
MimiqCircuitsBase.LazyExpr
— TypeLazyExpr(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.
MimiqCircuitsBase.UnexpectedSymbolics
— TypeUnexpectedSymbolics(sym, expr)
Error to be thrown when a unexpected symbolics is present in an expression.
MimiqCircuitsBase.exponent
— Methodexponent(poweroperation)
Exponent associated with a power operation
Examples
julia> MimiqCircuitsBase.exponent(power(GateH(), 2))
2
julia> MimiqCircuitsBase.exponent(GateSX())
1//2
MimiqCircuitsBase.unwrappedmatrix
— Methodunwrappedmatrix(gate)
Returns the matrix associated to the specified quantum gate without the Symbolics.Num
wrapper.
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
MimiqLink.DEFAULT_INTERVAL
— Constantconst DEFAULT_INTERVAL
Default refresh interval for tokens (in seconds)
MimiqLink.Connection
— Typestruct Connection
Connection with the MIMIQ Services.
Attributes
uri
: the URI of the connected instancetokens_channel
: channel updated with the latest refreshed tokenrefresher
: task that refreshes the token on a configured interval
MimiqLink.Execution
— Typestruct Execution
Structure referring to an execution on the MIMIQ Services.
MimiqLink.Tokens
— Typestruct Tokens
Store access and refresh tokens
MimiqLink.deletefiles
— Methoddeletefiles(conn, req)"
Delete the files associated with a request.
MimiqLink.printrequests
— Methodprintrequests(conn; kwargs...)
Print the list of requests on the MIMIQ Cloud Services.
Keyword arguments
status
: filter by status. Can beNEW
,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.
MimiqLink.refresh
— Methodrefresh(tokens, uri)
Refresh the tokens at the given uri / instance of MIMIQ.
MimiqLink.requests
— Methodrequests(conn; kwargs...)
Retrieve the list of requests on the MIMIQ Cloud Services.
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 beNEW
,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.
MimiqLink.stopexecution
— Methodstopexecution(conn, req)
Stop the execution of a request.