Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.
/ YaoAPI.jl Public archive

APIs in Yao, minimum package for Yao compatibility (moved to Yao.jl/lib)

License

Notifications You must be signed in to change notification settings

QuantumBFS/YaoAPI.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YaoAPI

API definitions for Yao.

Usage

Type ? in a Julia REPL to show the docstring.

help?> YaoAPI.mat
  mat([T=ComplexF64], blk)

  Returns the matrix form of given block.

The mat interface can be replace with any APIs bellow

Yao Register API

AbstractRegister, AdjointRegister, AllLocs, ComputationalBasis, DensityMatrix, NoPostProcess, NotImplementedError, PostProcess, RemoveMeasured, ResetTo, addbits!, collapseto!, density_matrix, fidelity, focus!, insert_qubits!, instruct!, invorder!, measure, measure!, nactive, nbatch, nqubits, nremain, partial_tr, probs, purify, relax!, reorder!, select, select!, tracedist, viewbatch, ρ

Yao Blocks API

AbstractBlock, AbstractContainer, CompositeBlock, LocationConflictError, PrimitiveBlock, QubitMismatchError, TagBlock, apply!, apply_back!, chcontent, chsubblocks, content, dispatch!, expect, getiparams, iparams_eltype, iscommute, isreflexive, isunitary, mat, mat_back!, niparams, nqubits, occupied_locs, operator_fidelity, parameters, parameters_eltype, print_block, render_params, setiparams!, subblocks, ishermitian, nparameters

License

Apache License 2.0

About

APIs in Yao, minimum package for Yao compatibility (moved to Yao.jl/lib)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages