Skip to content

Experimental features

Takumi Kato edited this page Feb 6, 2020 · 9 revisions

experimental.Ops

Branch: master

Release: 0.3.13

Immutable operations.

from blueqat import Circuit
from blueqat.experimental import Ops
c = Circuit().x[0]
d = Ops().x[0]

c2 = c.z[0]
d2 = d.z[0]

print(c) # => Circuit(1).x[0].z[0]
print(d) # => Ops(1).x[0]

experimental.macros

Branch: experimental-macros

Release: None

  • Add some new macros
  • Decorator for register_macro
from blueqat.experimental.macros import def_macro

@def_macro
def foo(c, arg):
    pass

# is equivalent with

def foo(c, arg):
    pass
BlueqatGlobalSetting.register_macro('foo', foo)

experimental.vqe

Branch: vqe-experimental

Release: None

Enhanced blueqat.vqe module. It will replace current blueqat.vqe module.

Planned features:

  • Sampler with run options likes backend selection.
  • Picklabel objective function for multiprocessing.
  • Better Hamiltonian separation strategy.
  • Refactoring for giving additional information (likes molecular data) to optimizer.
Clone this wiki locally