Arcelyth/mqc/circuit does not have a README file
pub(open) trait Effect {
fn measurement_key(Self) -> String? = _
fn name(Self) -> String
fn dimensions(Self) -> Array[UInt]
fn arity(Self) -> Int = _
fn try_unitary(Self) -> Gate? = _
fn try_channel(Self) -> Channel? = _
fn try_decompose(Self) -> Program? raise QuantumError = _
fn try_adjoint(Self) -> &Effect? raise QuantumError = _
fn parameters(Self) -> Array[String] = _
}pub(open) trait UnitaryKernel {
fn dimension(Self) -> Int
fn apply(Self, KernelArgs) -> Unit
fn adjoint(Self) -> &UnitaryKernel
}pub(all) suberror QuantumError {
InvalidDimension(UInt)
SizeLimit(Int)
InvalidGate(String)
DuplicateQid(Int)
TargetCount(Int, Int)
DimensionMismatch(Int, UInt, UInt)
RegisterMismatch
InvalidBasis(Int)
InvalidState(String)
} derive(Debug)type Circuit[Q]type Gatefn Gate::from_kernel(name : String, dimensions : Array[UInt], kernel : &UnitaryKernel, max_dimension? : Int) -> Gate raise QuantumErrortype Instructionpub(all) struct KernelArgs {
input_re : ArrayView[Double]
input_im : ArrayView[Double]
output_re : MutArrayView[Double]
output_im : MutArrayView[Double]
}type Operation[Q]type ProgramInstall
Download zipQuantum computing library for MoonBit.