Skip to content

Commit

Permalink
fix schema (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenZhao44 authored Feb 11, 2022
1 parent 6830f87 commit 0ef3107
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/schema.jl
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ run required more than max credits).
@option struct ExpConfig <: IBMQSchema
shots::Int = 1024
memory_slots::Int
n_qubits::Maybe{Int} = nothing
seed::Maybe{Int} = nothing
max_credits::Maybe{Int} = nothing
end
Expand Down
4 changes: 3 additions & 1 deletion test/schema.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ info = Configurations.from_dict(GateInfo, d)
Qobj(;
qobj_id="bell_Qobj_07272018",
type="QASM",
schema_version=v"1",
schema_version=v"1.3",
header=Dict("description"=>"Bell states"),
config=ExpConfig(shots=1000, memory_slots=2),
experiments=[
Experiment(;
header=Dict("description"=>"|11>+|00> Bell"),
config=ExpConfig(shots=1000, memory_slots=2, n_qubits=2),
instructions=[
Gate(name="u2", qubits=[0], params=[0.0, π]),
Gate(name="cx", qubits=[0, 1]),
Expand All @@ -62,6 +63,7 @@ Qobj(;
),
Experiment(;
header=Dict("description"=>"|01>+|10> Bell"),
config=ExpConfig(shots=1000, memory_slots=2, n_qubits=2),
instructions=[
Gate(name="u2", qubits=[0], params=[0.0, π]),
Gate(name="cx", qubits=[0, 1]),
Expand Down

0 comments on commit 0ef3107

Please sign in to comment.